Return to Snippet

Revision: 49756
at July 29, 2011 08:10 by xcsteve99


Initial Code
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:8888', 'http://www.NEWSITE.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://localhost:8888','http://www.NEWSITE.com');

UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost:8888', 'http://www.NEWSITE.com');

Initial URL
http://www.mydigitallife.info/how-to-move-wordpress-blog-to-new-domain-or-location/

Initial Description
run these in the SQL tab

Initial Title
Replace local db with new URL

Initial Tags
mysql, database, wordpress

Initial Language
SQL