[thelist] MySQL server through socket

Anthony Baratta Anthony at Baratta.com
Sun Sep 1 16:22:01 CDT 2002


At 12:35 PM 9/1/2002, Andrew Maynes wrote:

>Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)

Make sure your connection objects are exactly the same between the two
scripts. This error has to do with how mySQL is setup and running. It
sounds like the non-working script is attemptig to connect to a mySQL setup
that is not functioning correctly.

I also found this:

http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=%22Can%27t+connect+to+local+MySQL+server+through+socket%22

 > What I did is made a symlink from /var/run/mysql.sock to /tmp/mysql.sock
 > example: ln -s /var/run/mysql.sock /tmp/mysql.sock
 >
 > Or if /var/run/mysql.sock doesn't exist, find / -name "mysql.sock"
 > Then symlink that to /tmp
---
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list