InMotion Hosting Support Center

There may be times that you need to reset a database password. For example, you may be resetting the password as a normal maintenance / security precaution. If you're troubleshooting database connection errors, resetting your database password is a good step to take so you can be confident you are using the correct password.

In the following tutorial, we will walk you through the steps for resetting your database password using cPanel. If you by chance don't host your website with InMotion Hosting or your current hosting provider does not use cPanel, be sure to contact your current hosting provider for the proper steps for resetting database passwords within their system.

Reset a database password within cPanel:

  1. Log into your cPanel
  2. Under the Databases heading, click the MySQL Databases link
  3. A database does not have a password to reset, but instead we are needing to reset the password for the user assigned to the database.

    At the bottom of the page, under the Current Users, look for the user of the database then click on the Set Password icon in the Actions column. Remember that the database user you are modifying should be the assigned user for the database that requires the password change.

    If you don't know the database user assigned to your database, please look for the user in your software's configuration.php file (such as wp-config.php or configuration.php)

    change user password
  4. On the MySQL Account Maintenance page, enter the old password for the user and then enter the new password you would like. When finished, click the Change Password button.
    If you don't recall the current password for your MySQL user, you have two options:

    * Find the database password listed in your software's configuration file (such as wp-config.php or configuration.php) and try that

    * Delete the database user, recreate the database user with the password you would like, and then assign the user to the database once again

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

n/a Points
2016-08-24 9:57 pm

Thank you so much, this helped me quickly fix my site!

n/a Points
2015-02-22 11:05 am
The article is ok, but the solution doesn't work for me. I can't connect to the database from control panel, hence I can't get pass step 2.
n/a Points
2014-06-13 9:16 am

Muchas gracias, buen valor de contenido

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

5 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!