Wednesday, October 22nd, 2008 | Author: Angelo

phpMyAdmin - Error

#2002 - The server is not responding (or the local MySQL server’s socket is not correctly configured)

Here is what worked for me on cPanel server.

root@server [~]# vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

find
$cfg['Servers'][$i]['socket'] = ”;
change to
$cfg['Servers'][$i]['socket'] = ‘/var/lib/mysql/mysql.sock‘;

next line
$cfg['Servers'][$i]['connect_type'] = ‘tcp‘;
change to
$cfg['Servers'][$i]['connect_type'] = ‘socket‘;

now restart mysql service

root@server [~]# /etc/init.d/mysql restart

Category: phpmyadmin
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses

  1. where can I find this location: “/usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php” ???

  2. 2
    sonarat 
    Sunday, 7. March 2010

    i tried many time ,but it don’t work… please send me by thank you if you have new solution ,and i cann’t stop msql service

Leave a Reply