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 🙂

Published by Chaitanya

I am a family man, perpetual learner, coffee drinker, dessert eater and Happiness Engineer at Automattic. I also read, write, move, and meditate.

Leave a comment

Leave a Reply

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

%d bloggers like this: