Results 1 to 8 of 8

Thread: error 1045 (mysql)

  1. #1
    Member
    Join Date
    Aug 2001
    Location
    Fremont CA
    Posts
    537

    Default error 1045 (mysql)

    Changed the mysql root pass, and getting quite a bit of errors (user side ERROR 1045: Access denied for user: \'root@localhost\' (Using password: YES) 0

    whm side:

    ERROR 1045: Access denied for user: \'root@localhost\' (Using password: NO)
    /usr/bin/mysqladmin: connect to server at \'localhost\' failed
    error: \'Access denied for user: \'root@localhost\' (Using password: NO)\'


    already checked the .my.cnf file and it matches the new password, any ideas as i have 500 customers screaming down my back

  2. #2
    Member
    Join Date
    Aug 2001
    Posts
    839

    Default

    Did you change it w/ the WHManager or did you change it from the command line? You should do it from the WHManager and then restart all CPanel 3 servers, and run the phpmyadminupdate (within cpanel/bin somewhere... don\'t remember exactly where)... that will update the include files for the user frontend that is within each user\'s cpanel.....


    Let me know.
    ..............................


    http://www.fastservers.net/

    travis@fastservers.net
    ..............................

  3. #3
    Member
    Join Date
    Aug 2001
    Location
    Fremont CA
    Posts
    537

    Default

    WHM screws up when you try change the root mysql pass, I have found a fix for this for any other hosts that might encounter such error

    step by step

    login via ssh

    run the commands as follows:

    killall mysqld
    safe_mysqld --skip-grant-tables &
    /usr/local/cpanel/startup

    Then login into WHM reset the MySQL root
    password.

    go back to ssh...

    killall mysqld
    /etc/rc.d/init.d/mysql start

    And that should fix it... =)

  4. #4
    Member
    Join Date
    Aug 2001
    Posts
    839

    Default

    Never once had a problem w/ that function.
    Thanks for the advice!

    Rock on chicago.
    ..............................


    http://www.fastservers.net/

    travis@fastservers.net
    ..............................

  5. #5
    Member
    Join Date
    Apr 2003
    Posts
    101

    Exclamation Thank Goodness & Thank You!

    I'm so glad this post was here. It's almost 2 years old but it just got me out of a jam. Thanks a million!




    Originally posted by AlaskanWolf
    WHM screws up when you try change the root mysql pass, I have found a fix for this for any other hosts that might encounter such error

    step by step

    login via ssh

    run the commands as follows:

    killall mysqld
    safe_mysqld --skip-grant-tables &
    /usr/local/cpanel/startup

    Then login into WHM reset the MySQL root
    password.

    go back to ssh...

    killall mysqld
    /etc/rc.d/init.d/mysql start

    And that should fix it... =)
    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Aug 2001
    Posts
    31

    Default Not working.

    I tried that and it didn't fixed the problem.

    WHM 6.4.2
    Cpanel 6.4.2-E85
    RedHat 7.3

    Any other ideas ?

    Thank you.

    Catalin

    cPanel.net Support Ticket Number:

  7. #7
    Member
    Join Date
    Jul 2003
    Posts
    8

    Default

    all you have to do is reload the mysql...


    once you change the mysql password, login to phpmyadmin and reload the mysql.

    cPanel.net Support Ticket Number:

  8. #8
    Member
    Join Date
    May 2002
    Posts
    29

    Default

    I've only ever used the 'Reset MySQL Root Password' in Webfsck Manager.. or whatever.

    Then if you must.. edit the .....

    /usr/local/cpanel/3rdparty/phpMyAdmin/config.inc.php

    ..file with a new crypted password.

    It's rare for me to need to go that far though.. only really ever need to just reset it.

    cPanel.net Support Ticket Number:

Similar Threads

  1. Еmail accounts don't create / no errors
    By simple_line in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 02-19-2005, 12:56 AM
  2. Error 1045 on a Restore
    By Solokron in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 09-26-2003, 05:47 AM
  3. ERROR 1045: Access denied for user: 'root@localhost'
    By Jontxu40 in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 08-17-2003, 04:25 PM
  4. Cpanel ERROR 1045 MySql
    By viisage in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 04-24-2003, 07:21 PM
  5. error 1045 Access denied
    By DigiCrime in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 04-24-2003, 04:25 AM