phpMyAdmin - Error #2002 - MySQL server’s socket is not correctly configured

Posted by Jason Web Hosting Sunday 16 November 2008 8:10 pm

In order to get rid of this issue, edit the file, /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

and search for
$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’;

If this doesn’t fix the issue, make sure Mysql is running on your server and you have a symlink for mysql.sock under /tmp. To create a symlink, execute:

ln -s /varlib/mysql/mysql.sock /tmp

Leave a Reply

You must be logged in to post a comment.

Categories

Archives

Web Hosting Blogroll