Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

mysql

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 tried googling and give each solutions i found a try. Unfortunately, nothing worked for me.

By the way, I am using wamp server.

Below is my configuration file of config.inc.php from C:\wamp\apps\phpmyadmin3.2.0.1.

<?php

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* End of servers configuration */

$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>
like image 203
Charmie Avatar asked Apr 16 '12 17:04

Charmie


2 Answers

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.

like image 130
Paul Gobée Avatar answered Oct 23 '22 01:10

Paul Gobée


I face the same problem and changing

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

to

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

Solved this issue.

like image 39
Balkrishna Avatar answered Oct 23 '22 03:10

Balkrishna