mySQL ERROR 2002

ERROR: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

You need to install the server package:

sudo yum install mysql-server

After installation, you have to start the service:

sudo service mysqld start

and dont forget to secure install

sudo /usr/bin/mysql_secure_installation

Leave a Reply

Your email address will not be published. Required fields are marked *