How To Reset MySQL Database User & Password
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

How To Reset MySQL Database User & Password

If you forgot the password to your MySQL database user, you must create a new user with a new password, and then assign that user to the database. Do not worry, this will not erase or change any of the data in your database.

Create a New User

  1. Log in to your HostMonster cPanel account.
  2. Click the MySQL Databases icon under the Databases category.
  3. Locate the MySQL Users section of the MySQL Databases tool. To quickly find this section, click Jump to MySQL Users.
  4. Under Add New User, enter a username.
    Note: The username must be 7 letters or shorter.
  5. Enter a password in the Password field.
  6. Retype the password in the Password (Again) field.
  7. Click Create User.

Assign New User to Database

  1. Under "Add User to Database", select the newly created user from the User drop-down menu.
  2. From the Database drop-down menu, select the existing database to which you need the password reset.
  3. Click Add.
  4. From the MySQL Account Maintenance screen, select the privileges you wish to grant the user, or select ALL PRIVILEGES.
  5. Click Make Changes.
You may remove the old user from the database by clicking the red "X" next to the user in the "Current Databases" table.

Re-configuring your code

Now that you have a new user and password for your database, you will need to update your configuration file. Update the file to reflect the new database username and password and your site should now be working as it was before.

Instead of resetting your password, you may be able to find the existing password in your configuration file. If you are not sure where your configuration file is, check this list of different scripts to find its location: Location of Script Configuration Files



Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article will explain how to change or reset the password for a MySQL user.
Knowledgebase Article 157,885 views tags: change mysql password reset user

I am prompted to set a new MySQL password. What does this mean and how do I change it?
Knowledgebase Article 252,505 views tags: connect database mysql password phpmyadmin username

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.
Knowledgebase Article 877,480 views tags: creation database mysql

Related Help Content

How to reset various passwords associated with your account
Knowledgebase Article 167,467 views tags: change password reset update

I cannot connect to my database locally or remotely, do I have the correct server, username and password?
Knowledgebase Article 337,772 views tags: connect disconnected hostname mysql user

How to reset the password for FTP users.
Knowledgebase Article 145,603 views tags: change ftp password reset update

This article explains how to reset a lost WordPress password using phpMyAdmin.
Knowledgebase Article 207,081 views tags: password phpmyadmin wordpress

How do I change my Control Panel password?
Knowledgebase Article 1,725,687 views tags: change cpanel password passwords protect

How do I grant permissions to cPanel for my MySQL database administrator without giving them the domain password?
Knowledgebase Article 285,513 views tags: access grant mysql password permission

This article will explain how to connect your scripts to your MySQL databases.
Knowledgebase Article 240,011 views tags: database mysql scripts

How do I make my MySQL database compatible with the version you provide?
Knowledgebase Article 248,209 views tags: compatible database mysql

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here