While accessing PhpMyAdmin getting the following error.
ERROR #2002 – The server is not responding (or local MySQL server’s socket is not correctly configured).
Reason : The mysql socket file is missing from the /tmp directory
Fix : 1. Create a symbolic link from the original mysql socket file to /tmp
ln -s /var/lib/mysql/mysql.sock /tmp
OR
2. Restart MySQL service from WHM
WHM Login >> Main >> Restart Services >>SQL Server (MySQL)
OR
3. Edit the PhpMyAdmin configuration file to use the original MySQL socket file.
vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
Make sure, the correct mysql socket file is mentioned there.
$cfg[‘Servers’][$i][‘socket’] = ‘/var/lib/mysql/mysql.sock’;
$cfg[‘Servers’][$i][‘connect_type’] = ’socket’;