#2002 – The server is not responding (or local MySQL server’s socket is not correctly configured).
While accessing PhpMyAdmin you may see the above error. This is due to the missing socket file in the location /tmp.
Here is how to fix it:
The socket path which is specified in the phpMyAdmin configuration file is /tmp/mysql.sock.
$ vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
cfg[‘Server’][‘socket’] = ‘/tmp/mysql.sock’;
If mysql.sock is missing in /tmp, then create a link to the mysql.sock file in /var/lib/mysql.
$ ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Login back to PhpMyAdmin and you should no longer see the error.