Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Andres Barbudo-Rodriguez
2,663 Pointserror establishing a database connection
i set a new folder, paste the wordpress files inside, proceed with the local server to the url of the website to start installation but it says error establishing a database connection.
thank you!
3 Answers

jacobproffer
24,603 PointsHey Andres,
Have you set-up your wp-config.php?

Andres Barbudo-Rodriguez
2,663 Pointsyes, i tried configuring it, apparently it was not clear to me (and still not) why phpmyadmin lets me create a username and a password and they don't work to contact the database but when i create them with Sequel Pro (the mac app) is like if the password had no issues...
and it works normally
but yeah i solved it by creating the database with Sequel Pro

jacobproffer
24,603 PointsWere you working with MAMP? I work with MAMP at work and at home for WordPress development with no issue.

Andres Barbudo-Rodriguez
2,663 Pointsyes i do work with MAMP, at times just act like a noob and so i can't see my own nose jeje, sorry for that, but i solved it with sequel pro and have yet no tried with phpmy admin again, but i think its gonna work, in a different more complicated way but will work
xD