Follow Us
Contribute
  • Register

Error 2002: Can't connect to local MySQL server through socket

0 votes

This error message usually appears, when mysql server is not running. Also http://www.errorbase.net/Error_2003%3a_Can't_connect_to_MySQL_server_on_(X).">Error 2003: Can't connect to MySQL server on (X) appears when mysql server is not running.

requested 1 year ago by errorbase (169,970 points)

1 Solution

0 votes

Restarting MySQL server simply solves the problem.


Solution for Windows


  1. Open Control Panel.
  2. Go to Administrative Tools -> Services.
  3. Find MySQL in the list of services.
  4. Right click on MySQL and choose Start.


Solution for Linux


Run the "mysqld" command in Terminal and it will start the MySQL server.


solved 1 year ago by errorbase (169,970 points)

Related errors

+1 vote
1 solution
requested 1 year ago by errorbase (169,970 points)
+1 vote
1 solution
requested 1 year ago by errorbase (169,970 points)
0 votes
1 solution
requested 1 year ago by errorbase (169,970 points)
+1 vote
1 solution