Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress Local WordPress Development Local WordPress Development Migrating WordPress from Local to Live Server

Alex Evans
Alex Evans
2,961 Points

'Error executing database query' - solved

I'm finding I just get an error executing database query whenever I go to my live site. I've gone through this several times, starting from scratch, but it still seems not to work.

Another thing I'm wondering is: do I need to bring over the folder which contains all of the wordpress files and put it in the public html folder? or just the files themselves?

Apologies if I'm not clear enough here, it's the first time I've asked a question and not entirely sure what information would be relevant.


Sorry folks - also needed to change the DB_password define to match with new database password. Phew!

/** MySQL database password */
define('DB_PASSWORD', '**********');