LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MySql error 2002, Cannot start mysql (https://www.linuxquestions.org/questions/linux-software-2/mysql-error-2002-cannot-start-mysql-169482/)

djchris 04-13-2004 05:05 AM

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

david_ross 04-13-2004 01:07 PM

Welcome to LQ.

Check the /etc/my.cnf file and make sure that the client and server sockets are set to the same thing.

djchris 04-13-2004 05:35 PM

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

david_ross 04-13-2004 05:40 PM

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.

djchris 04-13-2004 06:01 PM

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

david_ross 04-13-2004 06:12 PM

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.