[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] MySQL PHP problem
- Subject: Re: [cobalt-developers] MySQL PHP problem
- From: Michael Stauber <devel@xxxxxxxxxxxxxx>
- Date: Wed Oct 23 16:13:00 2002
- Organization: SOLARSPEED.NET
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hi Colin,
> Warning: Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (111) in (directory path snipped) on line 9
The possible causes for this are as follows:
a) MySQL is not running
Solution: /etc/rc.d/init.d/mysql start
b) There is no mysql.sock file in the directory /tmp/
Usually the mysql.sock file is located in /var/lib/mysql/mysql.sock instead.
So you can fix that by creating a symbolic link in /tmp:
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Double check where your real mysql.sock is. The path might be slightly
different than /var/lib/mysql/mysql.sock
--
With best regards,
Michael Stauber
mstauber@xxxxxxxxxxxxxx
Unix/Linux Support Engineer