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 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.