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 Local WordPress Development Local WordPress Development Migrating WordPress from Local to Live Server

Trent Burkenpas
Trent Burkenpas
22,388 Points

Having issues with moving my local wordpress project to my server

I followed along with zac step by step in the migrating Wordpress video. But once I follow all the steps and check to see if its working, I get this error message.

"Error establishing a database connection"

any advice would be Great! Thanks

Trent Burkenpas
Trent Burkenpas
22,388 Points

I have fixed the issue, I think, but I have encountered another problem. I forgot to put in my password for "define('DB_PASSWORD'," . which got rid of the error message. Now my issue is that all i see is a white screen. Its not picking up my child theme. It claims that my parent theme is not installed, but it is. Any advice would be great!

Thanks!

Trent Burkenpas
Trent Burkenpas
22,388 Points

Ok I got it working! When creating a child theme make sure to write the theme name correctly, it is case sensitive. I had a uppercase when it should of been lowercase.

2 Answers

Tobiasz Gala
seal-mask
.a{fill-rule:evenodd;}techdegree
Tobiasz Gala
Full Stack JavaScript Techdegree Student 23,529 Points

Good to hear that you solved your problem. Thanks for sharing your solution and always watch out for case sensitive issues when it comes to programming.

Tobiasz Gala
seal-mask
.a{fill-rule:evenodd;}techdegree
Tobiasz Gala
Full Stack JavaScript Techdegree Student 23,529 Points

You cannot connect to your database. Make sure that wp-config file is set up correctly. You can also create another file name it as you want and put this code inside.

<?php
$connect = mysql_connect('host', 'login', 'pass'); // replace information here
  if (!$connect) {
    die('Could not connect: ' + mysql_error()); // this will display error
  }
  echo 'Connected';
mysql_close($connect);
?>

This script will check if you can connect to database.

Trent Burkenpas
Trent Burkenpas
22,388 Points

I fixed my issue, but thanks for your time and advice!