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 trialCarla Thomas
Front End Web Development Techdegree Student 16,039 PointsI keep getting error...
Please help. I keep getting the following error when setting up WP for allisongrayce.com:
"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 localhost. 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.
Carla Thomas
Front End Web Development Techdegree Student 16,039 PointsThe "root" for user and password was not working.....so I created unique entries. Thanks for your prompt reply :)
2 Answers
Ben Rubin
Courses Plus Student 14,658 PointsDid you create a local mysql database named wordpress?
Did you open wp-config-sample.php, then enter the database name, user name, and password, and then save it as wp-config.php?
Carla Thomas
Front End Web Development Techdegree Student 16,039 PointsThanks everyone.....the user name "root" and password "root" did not work for me....I went in and customized a unique user. Thanks again.
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsWhat are you answers to those questions?
Did you update the wp-config.php file and add upload it with the rest of the site, did you create a database on the server with the same information as in the wp-config.php file. Have you uploaded the mysql file to the database you created on the server?