Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    11

    Default MySQL + phpMyAdmin

    MySQL and phpMyAdmin are not functioning properally. When I select "phpMyAdmin" from "WHM" I recieve the following error message from phpMyAdmin

    Wrong username/password. Access denied.

    I reset the password and it appears to be correct even in /root/.my.cnf

    When I log into the server via shell as root and type "mysql -u root" I get the following error message.

    ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    Any help would greatly be appreciated!

  2. #2
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    on shell as root type:

    /etc/rc.d/init.d/mysql restart

    then check to see if there are any errors specified.

  3. #3
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Set the permissions of /tmp directory to 1777 and also check whether the mysql.sock is present in the /tmp, if not, do the following :-
    chmod 1777 /tmp
    ln -s /var/lib/mysql/mysql.sock /tmp
    service mysql restart

    If the above doesn't fix the issue, execute the below script :-
    /scripts/mysqlup --force

  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    11

    Default

    i just ran that script and the problem still exists. additionally i ran "updatedb" and then typed "locate mysql.sock" nothing was found. any ideas???

    thanks for the reply

  5. #5
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Try adding the below lines in /etc/my.cnf
    [mysqld]
    datadir=/var/lib/mysql
    socket=/tmp/mysql.sock
    [client]
    socket=/tmp/mysql.sock

    and restart Mysql as given by :-
    /etc/rc.d/init.d/mysql restart

    Else paste the output of the below command :-
    /var/lib/mysql/bin/mysqld_safe &
    or
    /usr/bin/mysqld_safe &

  6. #6
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Check the post of "Murtaza_t" in the below thread, that should definetly help you out.

    http://forums.cpanel.net/showthread.php?t=47313

Similar Threads & Tags
Similar threads

  1. mysql/phpmyadmin
    By avlnch in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-02-2007, 01:42 PM
  2. mysql 5 and phpmyadmin
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 04-10-2006, 11:25 PM
  3. PhpMyAdmin and Mysql
    By adm.iuri in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 09-23-2004, 11:34 AM
  4. MySQL and phpMyAdmin
    By minasonline in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-17-2003, 08:33 AM
  5. mysql and phpmyadmin
    By tmvnews in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-26-2002, 07:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube