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

gregory stocker
gregory stocker
3,520 Points

WordPress - Installing Wordpress Locally - Wordpress setup Wizard Error

I am getting the error that wordpress cant connect to the database or that my username and password is incorrect. I am pretty sure I followed the instructions exactly. My servers are running in MAMP. I just followed the tutorial setting up the username, password and host. Im not sure whats wrong. I coppied the automatically generated password. I saved wordpress in my documents in the sites folder I created like the instructions said. I`m stuck at this point.

1 Answer

Nedim Becirovic
Nedim Becirovic
9,394 Points

Could you please provide us with more details. Maybe some screenshots. It is hard to tell from this what might be the error. Can you connect to database at all? I think that MAMP comes with phpMyAdmin, which allows you to connect to database. This will ensure you that the connection to database is not the problem.

If you have not create any new posts, pages, menus or similar. You can delete wp-config.php from wordpress root folder, and once you start site again, you will go through setup steps. However, if you have any data, you can always back it up, and once you have deleted wp-config.php and did setup again you can restore it.