There may be times that you need to reset your 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.

To 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 heading click on the database user that you would like to reset the password for.

    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)

  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.
    mysql-account-maintenace
    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

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

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

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2168
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5557

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

Need more Help?

Search

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: support@InMotionHosting.com
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!