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 Content Strategy with WordPress Installing and Setting Up WordPress Locally

Atanas Sqnkov
Atanas Sqnkov
14,981 Points

Problem with the installation.

I get a "Error establishing a database connection" after I try to continue with the wordpress installation. What should I do to proceed?

Both my Apache and MySql are running in XAMPP.

3 Answers

Atanas Sqnkov
Atanas Sqnkov
14,981 Points

Problem fixed, I removed the password root. There was no "root" password in the users tab for the root user.

Petros Sordinas
Petros Sordinas
16,181 Points

Have you created a database and user for wordpress?

Is your SQL server running?

Did you enter the correct database settings, user name and password in the wordpress installer?

Atanas Sqnkov
Atanas Sqnkov
14,981 Points

As I wrote above, both my Apache and MySql are at green state.

I entered username: root, password: root as stated in the video. He didn't create a username with a password in the video.