ERROR 2002 (HY000): Can't connect to local MySQL server thro
Posted: Sun Nov 04, 2012 9:38 am
Getting the error "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)" while I try to connect to mysql via a jailed shell enabled user.
You need to specify the hostname so you can connect.
Solution :[email protected] [~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[email protected] [~]#
You need to specify the hostname so you can connect.
ormysql -h=127.0.0.1 -u user_name -p
mysql -h=localhost -u user_name -p