pvinodp
asked on
how to solve "Can't connect to local MySQL server through socket"
I tried to start the mysqld service in linux and I got the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2)
how to resolve this issue
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
how to resolve this issue
You will find many similar questions on EE.
hope this helps :
https://www.experts-exchange.com/questions/21279848/Error-connecting-to-MySql-var-lib-mysql-mysql-sock.html
https://www.experts-exchange.com/questions/20982388/MySQL-error-2002-Can't-connect-through-socket-'-tmp-mysql-sock'.html
hope this helps :
https://www.experts-exchange.com/questions/21279848/Error-connecting-to-MySql-var-lib-mysql-mysql-sock.html
https://www.experts-exchange.com/questions/20982388/MySQL-error-2002-Can't-connect-through-socket-'-tmp-mysql-sock'.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
first try to restart mysql service:
# /etc/init.d/mysql restart
or
service mysql restart
then do dmesg, and
cat /var/log/mysql/error.log
and send here.
problem is 1. Mysql not running
2. MySQL can't run (broken, or wrong config)
3. service can't access to MySQL socket.
Service don't have permission to open .sock (if u change rights manualy)
# /etc/init.d/mysql restart
or
service mysql restart
then do dmesg, and
cat /var/log/mysql/error.log
and send here.
problem is 1. Mysql not running
2. MySQL can't run (broken, or wrong config)
3. service can't access to MySQL socket.
Service don't have permission to open .sock (if u change rights manualy)
ASKER
Very similar to my previous related post,,,
Thanks
anyways
Thanks
anyways
http://forums.mysql.com/read.php?11,27769,27769