Error establishing a database connection

If you encounter the "Error establishing a database connection" issue in WordPress on our hosting, follow these steps in your WordPress root folder.

edit wp-config.php

change this value 


define('DB_HOST', 'localhost');

  • wordpress error, HTTPS
  • 29 Users Found This Useful
Was this answer helpful?

Related Articles

Enable LiteSpeed cache plugin for WordPress from cPanel

You can install LiteSpeed cache plugin for WordPress in two ways, we're going to explain how to...

[Solved] cPanel does not support NetworkManager enabled

Got the following error while installing cPanel on centos based server? 2018-09-29 17:35:01...