The Infamous ‘Error establishing a database connection’ Error

Last week I backed up my posts and themes and then deleted my test WordPress.org installation on which I developed and tested my other self hosted blog over the last few months.

I did this partly in order to start afresh with WP 4.0 RC1 beta testing. However I encountered the ‘Error establishing a database connection’ Error that prevented the installation. I could not figure how to resolve this and eventually gave up.

I resumed the installation today and saw this error again! Somehow I felt like trying by adding the actual hostname instead of localhost as the value of the Database Host property.

It worked 🙂

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s