Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: PHPmyadmin showing ERROR #2002 – THE SERVER IS NOT RESPONDING  (Read 1342 times)

0 Members and 1 Guest are viewing this topic.

vyshakhv

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
PHPmyadmin showing ERROR #2002 – THE SERVER IS NOT RESPONDING
« on: February 17, 2018, 02:55:35 pm »
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
Code: [Select]
ln -s /var/lib/mysql/mysql.sock /tmp

OR

2. Restart MySQL service from WHM
Code: [Select]
WHM Login >> Main >> Restart Services >>SQL Server (MySQL)

OR

3. Edit the PhpMyAdmin configuration file to use the original MySQL socket file.
Code: [Select]
vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
Make sure, the correct mysql socket file is mentioned there.
Code: [Select]
$cfg[‘Servers’][$i][‘socket’] = ‘/var/lib/mysql/mysql.sock’;
$cfg[‘Servers’][$i][‘connect_type’] = ’socket’;