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 How to Build a WordPress Theme Content Strategy with WordPress Installing and Setting Up WordPress Locally

Ronny Ewanek
Ronny Ewanek
4,385 Points

Trouble with Installation

Hey all!

I created a new database and attempted to install WP but it continuously says that it cannot connect to the database. I currently have another WP installation on the server with a different database...could that be causing this to happen?

Ideally I would like to have multiple WP sites on the local server.

Thanks!

2 Answers

Hi! It's fine to run multiple WP sites on a single server. Did you remember to add a user with the right privileges to the new database? If you're using phpmyadmin - Go to databases > find the new database name > click 'check privileges' and see if the user you are trying to connect to the database with is assigned.

Might help Installing Multiple Blogs

Ronny Ewanek
Ronny Ewanek
4,385 Points

James! That was it! Thank you so much! You rock!