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: #2002 Cannot log in to the MySQL server - phpmyadmin  (Read 7198 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
#2002 Cannot log in to the MySQL server - phpmyadmin
« on: October 06, 2014, 09:54:06 pm »
I have encountered the following error when attempting to login to phpmyadmin via cPanel or WHM:

Code: [Select]
#2002 Cannot log in to the MySQL server
The mysql rool password and mysql logins however were working properly. mysqladmin proc was giving information and mysql.sock was present.

The issue was corrected by editing the following line the phpmyadmin configuration file at:

/usr/local/cpanel/base/3rdparty/phpMyAdmin/config.ing.php

Code: [Select]
$cfg['Servers'][$i]['host'] = 'localhost';
to:
$cfg['Servers'][$i]['host'] = '127.0.0.1';

Thank you,