Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jul 2009
    Posts
    74

    Default Reset MySQL db password

    I am running
    cPanel Version 11.24.5-RELEASE
    cPanel Build 38506
    with
    Apache version 2.2.13 (Unix)
    PHP version 5.2.10
    MySQL version 5.0.81-community

    and can't find how to reset the password for an existing MySQL account, the MySQL screen allows to
    1. Add new database user
    2. Add user to a database
    But there doesn't seem to be an option to reset the dbpassword, I've also tried via phpmyadmin and the cpanel account logged in with doesn't see the privileges tab.

    Is there a package feature I need to include to allow MySQL password resets?

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,114

    Default

    There is no option to reset the database user from PHPMyAdmin as well as from cPanel. However, you can try to delete the database user from the cPanel and recreate it.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    To change a password for a MySQL virtual user (a MySQL user created via cPanel), just create the same user again. The new user will overwrite the old user, and replace the old password in the process.

  4. #4
    Member
    Join Date
    Jul 2009
    Posts
    74

    Default

    Is there a way to test the MySQL account details to make sure the password I think is for the user is actually correct thus ruling out the uncertainty before actually using the accout details outside of cPanel?

  5. #5
    Member
    Join Date
    Jul 2009
    Posts
    74

    Default

    I deleted the user account and added it back again and gave "All previliges" to the db.

    But I still can't use the account to connect to the db, the cms I'm trying says

    We were able to connect to the database server (which means your username and password is okay) but not able to select the database.
    Are you sure it exists?
    Does the user have permission to use the database?


    I've tried readding the privileges via cPanel but the error continues.
    Last edited by mobcdi; 10-13-2009 at 07:38 AM.

  6. #6
    Member
    Join Date
    Jul 2009
    Posts
    74

    Default

    When i check the db via the host account I've found that the MySQL account I created using the cPanel wizard isn't given all privileges and is missing
    • Create View
    • Show View
    • Alter routine
    • Execute
    • Grant

    Grant is also listed as No,

    There is another DB user named after the cPanel account which has All privileges to the database I created with the database wizard

    Could there be 2 user accounts created as part of the wizard?

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by mobcdi View Post
    When i check the db via the host account I've found that the MySQL account I created using the cPanel wizard isn't given all privileges and is missing
    • Create View
    • Show View
    • Alter routine
    • Execute
    • Grant

    Grant is also listed as No,

    There is another DB user named after the cPanel account which has All privileges to the database I created with the database wizard

    Could there be 2 user accounts created as part of the wizard?
    The All Privileges option in the cPanel MySQL interface only grants all privileges displayed in the interface.
    Kenneth
    Product Development
    cPanel, Inc.

  8. #8
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by mobcdi View Post
    There is another DB user named after the cPanel account which has All privileges to the database I created with the database wizard

    Could there be 2 user accounts created as part of the wizard?
    The Wizard only creates one MySQL user to my knowledge.

    What is the formatting of the two usernames?

    For example:
    1.) username_dbuser
    2.) username

    Regarding the additional privileges we are aware of the need and have the following related internal case IDs:
    #17834
    #31333

  9. #9
    Member
    Join Date
    Jul 2009
    Posts
    74

    Default

    Yes the usernames follows the structure you outlined. I still can't place what exactly I was doing wrong but decided to delete the account via whm and recreated it entirely which seems to have cleaned my brain and the system

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    598

    Default

    Quote Originally Posted by cpanelkenneth View Post
    The All Privileges option in the cPanel MySQL interface only grants all privileges displayed in the interface.
    Well, then why doesn't the interface have:
    Create View
    Show View
    Alter routine
    Execute
    Grant

  11. #11
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by BianchiDude View Post
    Well, then why doesn't the interface have:
    Create View
    Show View
    Alter routine
    Execute
    Grant

    Donald already addressed this in his post.
    Kenneth
    Product Development
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. reset password for mysql user
    By mv_ in forum Feature Requests for cPanel/WHM
    Replies: 3
    Last Post: 05-06-2011, 01:04 PM
  2. mySQL Fails after mySQL Password Reset
    By eglwolf in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 03-28-2011, 06:15 PM
  3. Reset mysql root password
    By ehsanch in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-02-2008, 07:04 AM
  4. Unable to reset Mysql Password
    By dazh in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-29-2005, 11:49 AM
  5. Mysql password reset?
    By RogelioH in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-21-2003, 04:25 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube