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 trialjaneporter
Courses Plus Student 23,471 Pointsgetting an 'error establishing a database connection' message when i click on the url on desktopserver
this is the error i'm getting:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at 127.0.0.1. This could mean your host’s database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
how do i even know (or find) the username and password?
2 Answers
Joe Schultz
6,191 PointsFirst, make sure your server is running. Then open the wp-config.php file in your text editor. The file should be in your wordpress folder. You will find your username and password there.
janeporter
Courses Plus Student 23,471 Pointsthank you for the information. what i ended up doing is uninstalling and reinstalling the Desktop server product. that worked.