Mysql got issue

edisonvpb

New member
Joined
Dec 1, 2015
Messages
35
Points
0
Hello guys

I got problem in mysql.ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'.

How to fix it.

Thank you.
 

vishwa

Well-known member
Joined
May 12, 2014
Messages
1,144
Points
63
That error means the file /var/run/mysqld/mysqld.sock doesn't exists, if you didn't install mysql-server, then the file would not exist. But if the mysql-server is already installed and is running, then you need to check the config files.
 

reCharge

Member
Joined
Jul 7, 2016
Messages
39
Points
8
Alternatively this error comes up when a mysql-server went down caused by high load. But after a restart everything should work fine again.
 

hostguy

New member
Joined
Sep 25, 2021
Messages
20
Points
3
mysql.ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'. error occur when running "# mysql -u USER -p" command. Most of the time this error occur when mysql is not installed properly.
 
Latest threads
Replies
0
Views
590
Replies
2
Views
789
Recommended threads
Similar threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top