Click to See Complete Forum and Search --> : /var/lib/mysql/mysql.sock ???????


popcop
12-11-2007, 11:27 AM
Im installing an application onto my site from an install directory on the server... it has all the DB details in it to connect to the DB and create tables ect.

When i go there is get this error

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Anyone have any idea how i can sort this problem?

It works fine on a different hosting company so the files are definatley fine

chazzy
12-12-2007, 06:22 AM
i believe in the my.ini file you specify how the connection is specified. can you verify that you have it go into /var/lib/mysql/mysql.sock ?

AnotherTechGuy
12-13-2007, 05:19 AM
quite often the mysql.sock file is put in /tmp/ - as specified in the my.cnf file - sometimes in /etc/ - else do a locate/find for that file (my.cnf) and check what is in there. It sounds like your PHP (I guess that is what you are using?) is looking for the sock file somewhere else, maybe?