How to Fix “Error Establishing a Database Connection in WordPress”

--

Inspect the wp-config.php File of your WordPress website

Every WordPress installation’s configuration file contains the database settings. It may be found in the root directory of your website and is called wp-config.php.

  • Log in to the website directories using FTP or the hosting control panel to inspect the file. Go to Site Tools > Site > File Manager if you are a SiteGround user.
  • Every website has a root folder, which is located at yourdomain.com/public_html. In our example, the folder is located at sg-testing.com/public_html because the website’s name is sg-testing.com.
  • Keep a backup of the file before making any modifications. To accomplish this, right-click the file, choose Copy, and give the copied file the new name wp-config-backup.php.

Read More

https://physicochemics.com/how-to-fix-error-establishing-a-database-connection/

--

--

physic-o-chemics

Here you can find everything about Chemistry/Physics/Mathematics.