'Coudn't connect to Database' error Print

  • 0

In order to troubleshoot a database connection error, first you must check the database name and password.

  1. Log into cPanel.
  2. Navigate to MySQL Databases menu.
  3. Check whether a database and a username exists.
  4. If your website is based on WordPress, open the wp-config.php file. The database and username have to defined within the config file.
  5. If you're not sure the password is correct or not, you can reset it through the MySQL Database menu and save it within the config file.
  6. Save the wp-config.php file and refresh the website to check.

Was this answer helpful?

« Back