> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resetting the MySQL root password in WebHost Manager (WHM)

> Learn how to use WebHost Manager (WHM) to reset the MySQL root password. Note that this article only applies to hosting accounts that have root access.

This article describes how to reset the MySQL root password using WebHost Manager (WHM). You may need to do this, for example, if you have forgotten the password.

<Note>
  * You must have root access on the server to reset the MySQL root password.

  * Remember that the *MySQL* root password is different from the root *account* password. The following procedure only changes the password for the MySQL root user, not the server's root user.
</Note>

## Resetting the MySQL root password

To reset the MySQL root password using WHM, follow these steps:

1. Log in to WebHost Manager.
   > 📘 Note
   >
   > If you do not know how to log in to your WebHost Manager account, please see [this article](/docs/accessing-webhost-manager).

2. In the search box at the upper left of the WHM screen, start typing **mysql root**, and then click **MySQL Root Password** when it becomes visible:\
   ![WebHost Manager - MySQL Root Password](https://static.hosting.com/kb/kb-whm-106-mysql-root-password.png)

3. In the **Password** and **Password (again)** text boxes, type the new password:\
   ![WebHost Manager - MySQL Root Password page](https://static.hosting.com/kb/kb-whm-78-reset-root-mysql-pw-page.png)

   > 👍 Tip
   >
   > Alternatively, you can click **Password Generator** and WHM generates a strong, random password for you.

4. Click **Change Password**. The new MySQL root password takes effect immediately.

## More information

To view the official cPanel documentation about changing the MySQL root password, please visit [https://blog.cpanel.com/how-to-reset-the-mysql-root-password-and-mysql-user-passwords](https://blog.cpanel.com/how-to-reset-the-mysql-root-password-and-mysql-user-passwords).

## Related articles

* [Resetting the MySQL root password](/docs/reset-mysql-root-password)

* [Configuring remote MySQL access](/docs/remote-mysql-access)

* [Connecting to MySQL from the command line](/docs/connect-to-mysql-from-the-command-line)

* [Remote MySQL connections](/docs/remote-mysql-connections)

* [Restricting MySQL port access](/docs/restricting-mysql-port-access)
