Start for free – your first 3 months are freeSee the offer

Databases and PHP

Reset the password for your database

If you've lost the database password, you create a new one under Web hosting → Databases. Here are the steps, and what to update afterwards so your website works.

2 min readUpdated

On this page
  1. Create a new password
  2. Frequently asked questions
  3. Can support tell me the old password?
  4. Can I choose the password myself?
  5. Does the new password change anything in the database itself?
  6. Why is the New password button greyed out?

The database password is only shown once, when the database is created, and can't be retrieved later. If you've lost it, you create a new one with a single click. The new password is generated automatically – you can't choose it yourself.

New password, confirm, copy and paste in as DB_PASSWORD in wp-config.php
From New password to an updated wp-config.php

Create a new password

  1. Step 1: Open Databases

    Go to Web hosting → Databases in the control panel.

  2. Step 2: Click New password

    Find the database, e.g. u12345_wp, and click New password on the right of the line.

  3. Step 3: Confirm

    Read the message saying that the old password will stop in a few seconds and click Reset password.

    The New password confirmation window with the Reset password button
    Confirm that a new password should be created
  4. Step 4: Copy the new password

    The window shows the username and the new password. Copy the password with the copy button, tick I have saved the password and click Close.

  5. Step 5: Update your website straight away

    Open wp-config.php with the File manager or SFTP and replace the value in DB_PASSWORD with the new password. If you use another program or your own script, change the password in its configuration file. Save the file.

  6. Step 6: Check that the website works

    Reload your website. If you still get a database error, check that no extra space or quotation mark came along when you pasted in the password.

The line in wp-config.php

DB_PASSWORD
The new password in single quotation marks, e.g. define('DB_PASSWORD', 'new-password');

Frequently asked questions

Can support tell me the old password?

No. The password can't be retrieved, not even by us. The only way is to create a new one.

Can I choose the password myself?

No. Sitewig always generates a long, random password so that the database is well protected. Save it in your password manager.

Does the new password change anything in the database itself?

No. Your tables and data are unchanged. Only the sign-in to the database gets a new password.

Why is the New password button greyed out?

While a database is being deleted, you can't change it. The button is also greyed out if the web hosting isn't active.

Read about web hosting

Didn't find the answer?

Reply within 1 working day · Mon–Fri 8:00–17:00 CET