[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] MySQL PHP problem



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