Error establishing a database connection


I was trying to install WordPress. I followed the steps on the guide however getting error "Error establishing a database connection" when I visit my website

Please resolve the issue.



2 Replies


Sounds like you've entered incorrect database information in your wp-config.php file.

Is MySQL running? Can you log into it via command line? Is the password correct?

– Dave.

You may also need to do a reboot in case there's something wrong with your stack… performance or configuration.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct