Bug #12415 Updated: changing mysql.default_socket in /etc/php.ini doesn't work
| From: | akoski at iobox dot com | Date: | Fri, 27 Jul 2001 07:21:45 +0000 |
| Subject: | Bug #12415 Updated: changing mysql.default_socket in /etc/php.ini doesn't work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61170@lists.php.net to get a copy of this message | ||
ID: 12415
User updated by: akoski@iobox.com
Reported By: akoski@iobox.com
Status: Feedback
Bug Type: MySQL related
Operating System: Linux Mandrake 8.0
PHP Version: 4.0.6
New Comment:
Found the problem. There was a missing ; .
I thought ;'s are only used for comments...
Previous Comments:
------------------------------------------------------------------------
[2001-07-27 03:07:55] cynic@php.net
are you sure PHP actually reads that php.ini? you can see the location where PHP looks for the file
in the output of phpinfo(). as with all changes in php.ini, you have to restart apache for this to
become effective.
------------------------------------------------------------------------
[2001-07-27 02:52:41] akoski@iobox.com
I have tried to change MySQL's socket path to something else than the default. I found that
there's a mysql.default_socket in /etc/php.ini.
I changed it to point to the socket file, but it doesn't seem to have any effect. PHP produces
error message saying that it cannot find mysql.sock, and the path points still to the default
location. phpinfo() shows also the default location.
There's a workaround: symbolic link to real socket file.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12415&edit=1