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

Inggrid Chandranata
Inggrid Chandranata
937 Points

Having trouble migrating Wordpress from Local to Live

Hi,

I am having trouble with Migrating Wordpress from Local to Live. I changed the wp-config.php as instructed and I got an error when I tried to run it live. What's wrong with it?

Thanks, Inggrid

Inggrid Chandranata
Inggrid Chandranata
937 Points

Here is what I copied from the video instruction:

// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'inggridc_localwp');

/** MySQL database username */ define('DB_USER', 'inggridc_wpuser');

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

/** MySQL hostname */ define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */ define('DB_CHARSET', 'utf8mb4');

/** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', '');

define('WP_HOME', 'http://inggridchandranata.com'); define('WP_SITEURL', 'http://inggridchandranata.com');

1 Answer

Do you have this MySQL database on your webhost aswell? Seems like you used the info from your local machine database on your webhost database. Make sure you create a database on your webhost so you can add the information of that database to the code you pasted above.

Inggrid Chandranata
Inggrid Chandranata
937 Points

Are you talking about the cpanel? I created a new MySQL database in the cpanel. How do you check the MySQL database in my webhost?

Inggrid Chandranata
Inggrid Chandranata
937 Points

I figured it out. I changed the password to the database password. It did not say in the video.