Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    2

    Unhappy Access Denied in MySQL

    When i try to do anything with MySQL I get the following error. This happened after i updated Cpanel. I don't know how to fix it, because both WHM and mysqladmin failed me. In WHM it says that the password was changed and it works, but it is not working. Also, my varl/lib/mysql/mysql/ directory got erased.... The files in it i think were what held password/user information. In that case, I copied over the files from another server with an almost identical set-up and I also reinstalled mySql, but absoluteley nothing I do seems to allow root to log into the database. If i re-delelte all the files from the above listed folder, MySQL stops working.

    Please help.

    Here is the exact error:
    connect to server at 'localhost' failed
    error: 'Access denied for user: 'root@localhost' (Using password: YES)'

    And this is the error in WHM when i try to go and change the password for the individual user under the mysql options:
    ERROR 1045: Access Denied
    Last edited by caca990099; 03-23-2004 at 02:21 PM.

  2. #2
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    There are two functions in WHM to change the MySQL root password. The 'civilized' one is under server setup, and the 'brute' one is under MySQL ("Reset Root Password"). Did you try both of them?

    Also, check the contents of /root/.my.cnf

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    2

    Default

    yes i have. Unfortunately even after i removed the password from .my.cnf it is still giving an error. The passwords and users must be stored somewhere. But i don't know where. I also don't know why PhpMyAdmin will not work either.

    very strange and troubling

    Thanks for your suggestion though.

Similar Threads & Tags
Similar threads

  1. Mysql 5 access denied problems
    By ricoche in forum Database Discussions
    Replies: 6
    Last Post: 08-23-2010, 04:56 AM
  2. Mysql 5 access denied problems
    By ricoche in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-23-2010, 04:56 AM
  3. Eximstats / MySQL problem - access denied
    By jdan6@2003 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-30-2003, 12:38 PM
  4. User MySql access denied
    By paralard in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-18-2003, 07:40 PM
  5. Users denied access to MySQL
    By Curious Too in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-01-2002, 07:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube