- Plesk Onyx for Linux
- Plesk Onyx for Windows
- Plesk for Linux
- Plesk for Windows
WordPress website is not accessible after migration with the following error:
CONFIG_TEXT: Error establishing a database connection
Users' database passwords are not correct on the source server.
Use one of the following workarounds:
Set the correct database user password in the
/var/www/vhost/example.com/httpdocs/wp-config.phpfile on the source server using Plesk File Manager or SSH connection and re-migrate the subscription.
If content re-syncing is not planned or is not possible, update the database password as follows:
Go to Domains > example.com > File Manager and find the
wp-config.phpfile in the domain directory.
wp-config.phpand find the first lines defining the database, database user, database password and database server address, like the following:
CONFIG_TEXT: /** The name of the database for WordPress /
/* MySQL database username /
/* MySQL database password */
/** MySQL hostname */
define('DB_HOST', '203.0.113.2:3306'); \
Copy the password (without the
Go to Domains > example.com > Databases and click the database user
usernameunder the database
dbname(see lines from
wp-config.phpfrom the previous step for reference).
Paste the password (see step 2) to the New password and Confirm password fields and click OK or Apply.
Note: In case an error is shown 'Database user name is greater than 16 characters', shorten the user name to under 16 characters on the Database User page in Plesk, and then update the
DB_HOSTis set to the hostname or IP address displayed in Domains > example.com > Databases