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 trialmikkel pohjola
1,966 PointsI keep getting af database connection error
Hi treehouse students and teachers. When I have to edit in wp_config.php, so that I can see my website online, as the teacher does in the video, I keep getting a database error
Error establishing a database connection.
What do I do
Andres Ramirez
18,094 PointsAndres Ramirez
18,094 PointsIf you are having this issue (BIG THANKS to Zac for jumping over this), you must define your "MySQL hostname" properly. Since it is now live on the web, it is NO LONGER LOCALHOST! You must put the web URL to your MySQL database in this slot. Example: yourname.yourhostsql.com