MYSQL question
Hi I am trying to run mysql but i am getting this error
[root@OneBox bin]# ./mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Regards, Kevin N Khushal |
Hi sometimes mysql gets itself in a mess regarding the socks file.
do: $ ps aux | grep my to see if there is any mysql services running. If there are none, then you have to start it: # /etc/init.d/mysql start hamish |
Hi Hamish,
The mysql service is running on my linux box. What shall i do now. KEvin |
Quote:
Quote:
|
Edit /etc/my.cnf (or wherever my.cnf is) and change the "socket = ..." to socket = /tmp/mysql.sock" for the client [mysql] and the server [mysqld]. Of course you have to restart the server.
|
All times are GMT -5. The time now is 03:42 PM. |