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

Like this Article?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Brad Markle, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. Configuring Mandrill SFP / DKIM settings
  2. Why can't I access the admin page?
  3. ftp application

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!