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 Local WordPress Development Local WordPress Development Installing WordPress Locally

error 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

Hey Andres,

Have you set-up your wp-config.php?

yes, 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

https://www.sequelpro.com

Were you working with MAMP? I work with MAMP at work and at home for WordPress development with no issue.

yes 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