Skip to main content

How to Change a MySQL User Password in cPanel

You can change the password for a MySQL user directly within the cPanel interface. This allows you to update credentials for database users while maintaining their existing permissions and database access.

You can change the password for a MySQL user directly within the cPanel interface. This allows you to update credentials for database users while maintaining their existing permissions and database access.

Before you begin

You will need:

  • A cPanel account with the appropriate permissions to manage MySQL users.

  • The exact username of the MySQL account you wish to update.

  • A new, secure password.

Change the MySQL user password

  1. Log in to your cPanel account.

  2. Locate the Databases section and select Manage My Databases.

  3. Scroll down to the Current Users section.

  4. Find the specific MySQL user in the list and click the Change Password icon (or link) next to that user.

  5. Enter your new password in the provided field.

  6. Click Change Password.

Confirm the result

  • The page will refresh or display a success message confirming the password update.

  • You can verify the change by attempting to log in to the database using the new password via a tool like phpMyAdmin or a local database management client.

If you cannot log in after changing the password

If you are unable to connect to your database after updating the password, verify the following:

  • Ensure there are no typos in the username or the new password.

  • Check that the host address (e.g., localhost) is correct.

  • If you are connecting from a remote application, ensure your IP address is still permitted in the Remote MySQL settings.

Did this answer your question?