Resolve "MySQL Error ERROR 2002 (HY000) Cant connect to local MySQL server through socket"

Home > Search
  by

Error MySQL Error ERROR 2002 (HY000) Cant connect to local MySQL server through socket implies that the MySQL service is not running. Check the status of the MySQL service.

systemctl status mysql

 

If the MySQL service is not running, start the service.

systemctl start mysql

 

SELinux may be enforcing. Use the following command to determine if SELinux is enforcing.

getenforce

 

If SELinux is enforcing, you can set SELinux to permissive to know if SELinux is the source of the problem.

setenforce permissive

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments