MySql error 2002, Cannot start mysql
hello Everyone
I'm trying to start mysql but i get this kind of error ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (13). First time there was no socket file in the '/var/run/mysql/mysql.sock' so i've copied the socket file from the /tmp to '/var/run/mysql/mysql.sock'. but i stil got the same errors. can someone help me. Thank in advance. Greetz, DJ Chris |
Welcome to LQ.
Check the /etc/my.cnf file and make sure that the client and server sockets are set to the same thing. |
Hi David
I've looked with find, whereis and slocate to my.cnf but i can't find it anywhere. do you have a sample file Thanks for the reply Greetz, DJ Chris |
I didn't say my.conf and I gave you the location in my previous post.
There is a sample file included with the mysql distribution. |
I'm sorry david i've modified my previous message but that was to late, you've already read and answered it.
but i should look at de mysql site for a sample file or on my own pc with an other name? My english is not very good i'm from holland. greetz, Chris |
There are several examples in the "support-files" directory contained within the mysql tarball.
|
All times are GMT -5. The time now is 07:07 PM. |