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,137
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

New member
Joined
Jul 7, 2016
Messages
37
Points
0
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
1
Views
81
Replies
1
Views
176
Replies
4
Views
384
Replies
11
Views
526
Replies
2
Views
228
Recommended threads
Replies
9
Views
6,207
Replies
19
Views
4,195
Replies
3
Views
2,847
Replies
3
Views
2,633

Latest postsNew 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