Posted By

xcsteve99 on 07/29/11


Tagged

mysql database wordpress wp


Versions (?)

Replace local db with new URL


 / Published in: SQL
 

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

run these in the SQL tab

  1. UPDATE wp_options SET option_value = REPLACE(option_value, 'http://localhost:8888', 'http://www.NEWSITE.com') WHERE option_name = 'home' OR option_name = 'siteurl';
  2.  
  3. UPDATE wp_posts SET guid = REPLACE(guid, 'http://localhost:8888','http://www.NEWSITE.com');
  4.  
  5. UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://localhost:8888', 'http://www.NEWSITE.com');

Report this snippet  

You need to login to post a comment.