MySQL :: #2002 – The server is not responding

Hi,
Today I am getting problem in mysql server, When I was click phpmyadmin under wamp server, I am getting below error.
#2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured).

Socket message


After couple of hours of head scratching, I have got answer and cracked it.
Problem occurred when mysql socket property is not set in config file.I have solved this problem of WAMP server environment.
The following steps needed when you will face above problem.
Step1: Change php.ini file setting

mysql.default_socket =
To
mysql.default_socket =/tmp/mysql.sock

Step2: Sometimes above setting is not reflected , so you need to change php.ini setting under status bar wamp server.

wamp setting

mysql.default_socket =
To
mysql.default_socket =/tmp/mysql.sock

Step3: change C:wampappsphpmyadmin3.3.9config.inc setting.

$cfg['Servers'][$i]['socket'] = '';
To
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';

Thank you for taking the time to read my post.