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

Meg Cusack
Meg Cusack
11,448 Points

"can't select a database" error message

I am in the 5-minute install. All went well until setting up the database. I did it, as Zac taught, but when I went to the wp-admin screen, it looked like it was already set up- it didn't ask for database info.

So I went to mysql databases (in Cpanel of wordpresshostingforstudents site) and there was another data base there. (Did wordpresshostingforstudents already set one up and we didn't need to do the step Zac said?) So I deleted the one I did not create but now when I go to wp-admin, I just get the error that it can't select a database. How do I connect my newly created database to the wp site I made?

1 Answer

Hugo Paz
Hugo Paz
15,622 Points

Hi Meg,

If you set up a database you can edit the config.php file so it will connect to that database.

The wordpress codex has a nice tutorial

Meg Cusack
Meg Cusack
11,448 Points

Thank you, Hugo! That was the answer I needed and solved my problem.