Skip to main content

How to Change a MySQL User Password in WHM

Change the password for a specific MySQL user within the WHM interface. This procedure allows a Server Administrator to update database credentials for any account on the server.

Change the password for a specific MySQL user within the WHM interface. This procedure allows a Server Administrator to update database credentials for any account on the server.

Before you begin

You will need:

  • Root access to the WHM interface

  • The specific MySQL username you wish to modify

Change the MySQL user password

  1. Log in to WHM.

  2. In the left-hand sidebar, search for MySQL Database or navigate to Tools > Manage Database Users.

  3. Select the specific account or database context if prompted, then locate the MySQL user you wish to modify.

  4. Click the Change Password button (or the edit icon) next to the desired user.

  5. Enter a new, secure password for the user.

  6. Click Change or Update to apply the new password.

Confirm the result

  • The system will display a success message confirming the password update.

  • The user's password will be updated immediately, and the old password will no longer function for database connections.

If the password does not update

If the password does not appear to update or the user cannot log in with the new credentials:

  • Verify that the password does not contain special characters that may be misinterpreted by the application connecting to the database.

  • Ensure there are no trailing spaces in the password field.

  • Check the MySQL service status in WHM to ensure the service is running correctly.

Limitations

This procedure only changes the password for the MySQL user. It does not change the password for the cPanel account or the WHM account. If the user is a local system user, their Linux shell password remains unchanged.

Did this answer your question?