Mysql – thesql ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/thesqld/thesqld.sock’ (2)

MySQL

I installed (on Ubuntu 13) MYSQL using

sudo apt-get install mysql

But after running

mysql -u root -p

and entering the password it gives the error

ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)

Please guide…

Best Answer

Problem:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Solution:

sudo service mysql start