Bug #15933: PHP 4.* binary does not connect to mysql from a cron job
| From: | gpankhurst at hotmail dot com | Date: | Thu, 07 Mar 2002 14:50:08 +0000 |
| Subject: | Bug #15933: PHP 4.* binary does not connect to mysql from a cron job | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-1921@lists.php.net to get a copy of this message | ||
From: gpankhurst@hotmail.com
Operating system: Sco Unixware 7.1
PHP version: 4.1.0
PHP Bug Type: MySQL related
Bug description: PHP 4.* binary does not connect to mysql from a cron job
I have a few PHP scripts that execute from a php binary from a cron job.
Since changing to version 4 they fail to connect to the database with a
:-
"Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
error, or :-
"Can't connect to MySQL server on 'xxxx'" if I don't use the local
socket
method of connecting.
I've tried these versions of php and a few different versions of mysql all
with the above same results
php-4.0.3pl1
php-4.0.6
php-4.1.0
I've reverted the binary to version php-3.0.18 and it all works fine
As the scripts are quite simple I only need mysql with the php binary, my
configuration for the binaries is :-
./configure --enable-track-vars --with-mysql=/usr/local/mysql
--
Edit bug report at http://bugs.php.net/?id=15933&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15933&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15933&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15933&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15933&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15933&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15933&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15933&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15933&r=submittedtwice