The server is not responding (or the local MySQL server's socket is not correctly configured) in wamp server

后端 未结 6 1678
南方客
南方客 2020-12-05 20:09

I am currently getting this error in my phpmyadmin:

2002 - The server is not responding (or the local MySQL server\'s socket is not correctly configured)

I t

相关标签:
6条回答
  • 2020-12-05 20:34

    mysql default port is 3306 can you try putting it and then try

    0 讨论(0)
  • 2020-12-05 20:35

    I use XAMPP and had the same error. I used Paul Gobée solution above and it worked for me. I navigated to C:\xampp\mysql\bin\mysqld-debug.exe and upon starting the .exe my Windows Firewall popped up asking for permission. Once I allowed it, it worked fine. I would have commented under his post but I do not have that much rep yet... sry! Just wanted to let everyone know this worked for me as well.

    0 讨论(0)
  • 2020-12-05 20:43

    I face the same problem and changing

     $cfg['Servers'][$i]['host'] = 'localhost';

    to

     $cfg['Servers'][$i]['host'] = '127.0.0.1';

    Solved this issue.

    0 讨论(0)
  • 2020-12-05 20:43

    If you use MAMP, make sure it's started. :)

    I just ran into this problem, and after starting MAMP the error went away. Not my finest moment.

    0 讨论(0)
  • 2020-12-05 20:45

    I had a similar issues fresh install and same error surprising. Finally I figured out it was a problem with browser cookies...

    1. Try cleaning your browser cookies and see it helps to resolve this issue, before even trying any configuration changes.

    2. Try using XAMPP Control panel "Admin" button instead of usual http://localhost or http://localhost/phpmyadmin

    3. Try direct link: http://localhost/phpmyadmin/main.php or http://127.0.0.1/phpmyadmin/main.php

    4. Finally try this: http://localhost/phpmyadmin/index.php?db=phpmyadmin&server=1&target=db_structure.php

    Somehow if you have old installation and you upgraded to new version it keeps track of your old settings through cookies.

    If this solution helped let me know.

    0 讨论(0)
  • 2020-12-05 20:47

    There are possible solutions here: http://forums.mysql.com/read.php?35,64808,254785#msg-254785 and here: http://forums.mysql.com/read.php?35,23138,254786#msg-254786

    All of these are config settings. In my case I have two computers with everything in XAMPP synced. On the other computer phpMyAdmin did start normally. So the problem in my case seemed to be with the specific computer, not the config files. Stopping firewall didn't help.

    Finally, more or less by accident, I bumped into the file:

    ...path_to_XAMPP\XAMPP...\mysql\bin\mysqld-debug.exe

    Doubleclicking that file miraculously gave me back PhpMyAdmin. Posted here in case anyone might be helped by this too.

    0 讨论(0)
提交回复
热议问题