How to change a MySQL or PostgreSQL database user password

For hosting customers · Updated 2026-10-29

On this page
  1. Steps
  2. Update your website
  3. Good to know
  4. Common questions

Database passwords cannot be shown again after they are created. If you lost one, set a new one — then put the same password in your website's configuration.

Steps

  1. Log in to the control panel (https://<server>:2083).
  2. Open MySQL Databases (or PostgreSQL Databases) in the menu (section Databases).
  3. Under Database users, click Password next to the user.
  4. Enter the New password, at least 8 characters with three of: lowercase letters, uppercase letters, digits, symbols.
  5. Click Change.

You see Password changed. The new password works within a few seconds.

Update your website

The website still uses the old password until you change it in its configuration file. Open the file in the File Manager and replace the password:

ApplicationFileSetting
WordPresswp-config.phpdefine( 'DB_PASSWORD', '…' );
Laravel.envDB_PASSWORD=…
Joomlaconfiguration.phppublic $password = '…';
PrestaShopapp/config/parameters.php'database_password' => '…'

Good to know

  • The user keeps its access to all its databases; you do not need to add it again.
  • If you allowed addresses in Remote MySQL, the new password applies there too.
  • Changing your control panel password does not change database passwords, and the reverse.
  • WordPress sites installed from the panel have their own database user. Its password is only in wp-config.php.

Common questions

My site shows "Error establishing a database connection" after the change. Why?

The configuration file still has the old password, or a typo. Check it, including quotes around the password. See database connection errors.

Can I see the current password?

No. Passwords are stored in a form that cannot be read back. Look in your site's configuration file, or set a new one.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.