how to resolve 'not able to establish connection with database'?

        while opening your website if an error appears saying 'not able to establish a connection with database'. It may be because  wp-config.php file present in /home/public_html is not configured properly.

        To resolve this issue open the wp-config.php in the editor and add the following information :

  • Add your database username in the configuration file.
  • Add your database password in the configuration file

save the configuration file and exit.



Was this answer helpful?