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...
mysql -uroot -p -h 127.0.0.1
orlocalhost
instead of127.0.0.1
– sitesmysqladmin variables | grep -i socket
– sitesps aux | grep mysql
– Geoffrey