How to change the password for my MySQL database on cPanel

Procédure

How to change my MySQL database password on cPanel

Sometimes you need to change the database password. For maintenance or security reasons, or if you are experiencing database connection errors.

In this article we'll take you through the steps involved in changing your database password using cPanel.

How to change my MySQL database password on cPanel

To change your MySQL database password :

  1. Connect to the cPanel interface
  2. In the "Database" section, click on "MySQL database".

How to change the password for my MySQL database on cPanel

  1. Scroll to the bottom of the following page, and click on the "change password" link located to the left of the MySQL user associated with the database.

How to change the password for my MySQL database on cPanel

3. Then click on the "Password Generator" button to generate a password automatically, then on the "Change Password" button to save the changes.

How to change the password for my MySQL database on cPanel

How to find the current database password :

The database password is listed in the configuration file for your software (such as wp-config.php if you have a WordPress site or configuration.php if you have a Joomla site).

These files are located in the "/public_html/" folder, you can use your cPanel file manager to find them.

help.lws.net/a/1456
Was this article helpful?

Yes

No

Read 17 715 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.