If your WordPress site is out of sync with your database and displays the following error: "Error Connecting to the Database", you'll need to update the connection strings on your WordPress site.
/** The name of the database for WordPress */
define('DB_NAME', 'yourdatabasename');
/** MySQL database username */
define('DB_USER', 'yourusername');
/** MySQL database password */
define('DB_PASSWORD', 'yourpassword');
/** MySQL hostname */
define('DB_HOST', 'yourhostname');
$table_prefix = 'yourtableprefix';
Article ID: 1214
Created On: Tue, Nov 17, 2020 at 6:48 PM
Last Updated On: Wed, Nov 18, 2020 at 9:48 PM
Online URL: https://www.heartinternet.uk/support/article/update-wordpress-database-connection-string.html