Re: MySQL related
| From: | (Stig Sæther Bakken) | Date: | Thu, 03 May 2001 19:29:00 +0000 |
| Subject: | Re: MySQL related | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-53691@lists.php.net to get a copy of this message | ||
[Hien Duy Nguyen <hdn@umich.edu>]
> From: hdn@umich.edu
> Operating system: RH7.1
> PHP version: 4.0 Latest CVS (03/05/2001)
> PHP Bug Type: MySQL related
> Bug description: can't make connection to Mysql DB
>
> Warning: MySQL Connection Failed: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (111) in
> /home/hdn/public_html/test.html on line 11
> Couldn't connect to MySQL
>
> Mysql server is up and running, I can connect to it with shell command.
The MySQL client that comes with PHP has a different default mysql
socket configured than the RedHat-installed MySQL. Run as root:
echo 'ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock' >> /etc/rc.d/rc.local
eval
tail -1 /etc/rc.d/rc.local
- Stig
--
Stig Sæther Bakken <ssb@fast.no>
Fast Search & Transfer ASA, Trondheim, Norway