Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Build a WordPress Theme Launching a WordPress Site How to Migrate a Local WordPress Site to Live Server

Rowan Sims
Rowan Sims
4,898 Points

"Error establishing a database connection"

Once I've uploaded everything and created the database, etc, I go to the URL and get the above message. Any ideas what I may have missed or done wrong?

2 Answers

Rowan Sims
Rowan Sims
4,898 Points

Got it sorted. I just deleted the database, created a new one and re-uploaded the sql file and that seems to have fixed it. Not sure why, but problem solved.

Hugo Paz
Hugo Paz
15,622 Points

Hi Rowan,

Can you open your config file and check if its correct?

Rowan Sims
Rowan Sims
4,898 Points

Hi Hugo,

Yes config file is correct as far as I can tell. I've coded it all as described in the video.

Rowan