Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Feb 2008
    Posts
    5

    Default phpmyadmin error #2002

    i have latest everything (cpanel/whm) its on a centos 5 and i keep getting error

    phpMyAdmin - Error

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

    i have tried a couple things but it doesnt work still

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Did you recently attempt to upgrade from MySQL 4.x to 5.0?

  3. #3
    Member
    Join Date
    Mar 2007
    Posts
    36

    Default

    I have the same problem. Our mysql version is:

    mysql Ver 14.7 Distrib 4.1.22, for pc-linux-gnu (i686) using readline 4.3

    By the way, after whm/cpanel install mysql wasn't working at all. I had to manually change ownership of /var/lib/mysql* for it to start.

    What could be the problem?

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    26

    Default

    this provided at least a temporary fix for me:
    cd /tmp; ln -s /var/lib/mysql/mysql.sock

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    1

    Default

    I fixed this issue adding "socket = /tmp/mysql.sock" to /etc/my.cnf and then restarting mysql

    I hope this help...

  6. #6
    Member teksupportrena's Avatar
    Join Date
    Feb 2008
    Posts
    8

    Default

    The phpMyadmin errror "#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)" occurs due to many reasons.

    1. First check whether mysql is working in the server or not.

    2, Check whether there is a symbolic link from mysql.sock to /tmp. If not, create a symlink between /var/lib/mysql/mysql.sock and /tmp/mysql.sock.
    ~~~~~~~~~
    ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
    ~~~~~~~~~

    3. If this doesn't fix the issue check the file: /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php and make sure the entries are like this:
    ~~~~~~~~~~~~~~~~
    $cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock';
    $cfg['Servers'][$i]['connect_type'] = 'socket';
    ~~~~~~~~~~~~~~~~~

    Hope these will help u......

  7. #7
    Member
    Join Date
    May 2005
    Posts
    6

    Default

    Tried all of the above and nothing works. PHPMyadmin had been working quite happily until recently. Any more clues?

  8. #8
    Member
    Join Date
    May 2005
    Posts
    6

    Default

    Bizarre - today it is fine

  9. #9
    Member rootuser's Avatar
    Join Date
    Jan 2005
    Location
    ***INDIA***
    Posts
    125

    Default

    Quote Originally Posted by teksupportrena View Post
    The phpMyadmin errror "#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)" occurs due to many reasons.

    1. First check whether mysql is working in the server or not.

    2, Check whether there is a symbolic link from mysql.sock to /tmp. If not, create a symlink between /var/lib/mysql/mysql.sock and /tmp/mysql.sock.
    ~~~~~~~~~
    ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
    ~~~~~~~~~

    3. If this doesn't fix the issue check the file: /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php and make sure the entries are like this:
    ~~~~~~~~~~~~~~~~
    $cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock';
    $cfg['Servers'][$i]['connect_type'] = 'socket';
    ~~~~~~~~~~~~~~~~~

    Hope these will help u......
    3 step fixed my problem Thanks!

Similar Threads & Tags
Similar threads

  1. phpmyadmin giving error #2002 after latest update
    By ambition13 in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 09-11-2008, 09:54 PM
  2. Phpmyadmin error #2002
    By Naatan in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 08-04-2008, 02:45 PM
  3. cpanel phpmyadmin returns #2002 - The server is not responding
    By boatdesign in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-19-2008, 06:54 PM
  4. [B]phpmyadmin error 2002[/B]
    By richenou in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-16-2007, 03:37 PM
  5. Error MySQL 2002
    By deejay91 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-16-2004, 01:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube