#2002-server is not responding (or local socket to MySQL server is not configured correctly)

You will see I have a database in phpmyadmin and when I want to make a query to a table, it does not leave me, I can only visualize it but I can not make queries, when I try to make my own query, in SQL it appears to me:

2002-the server is not responding (or the local socket to the MySQL server is not configured correctly).

But only that, the other tables I have in that database do I have access to them and I can do query.

PD. I'm in windows and I don't use XAMPP

 2
Author: fredyfx, 2016-06-23

5 answers

This error is because your phpMyAdmin configuration has the wrong path to mysql.sock. You find this in the file config.inc.php

$cfg['Servers'][$i]['socket']        = '/var/lib/mysql/mysql.sock';

What I find strange is that if it works for you for other tables. I hope this helps you.

 2
Author: mbenegas, 2016-06-23 20:43:29

I solved the problem in config.inc.php, by setting the current default connection port to the ip. which had previously changed to use another program on local at the same time

$cfg['Servers'][$i]['host'] = '127.0.0.1:3307' 

$cfg['Servers'][$i]['host'] = '127.0.0.1:3306' 

The last one is the one that worked for me

 1
Author: Roberto Tejada, 2020-01-17 21:13:05

In my case it was because of the firewall.

  1. I have added a rule in "Inbound Rules" with the port using MySql .

Already works perfectly.

 0
Author: Eva, 2019-07-01 11:36:52

Had the same problem and I solved it by indicating the default port for both MySQL and MariaDB as is as indicated by"FRANCISCO J. BLANCO"

 0
Author: VALEN, 2021-01-08 13:31:04

Follow these steps:

  1. uninstall wamp
  2. install the 3 Visual Basic 2012, 13 and 15 packages (link )
  3. reinstall wamp
 -3
Author: Edward, 2017-10-02 22:26:45