SHARE
TWEET

Untitled

a guest Mar 19th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ALTER TABLE exampletable RENAME TO new_table_name;
  2.  
  3. UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl';
  4.  
  5. UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL');
  6.  
  7. UPDATE wp_postmeta SET meta_value = replace(meta_value,'Existing URL','New URL');
  8.  
  9. UPDATE wp_usermeta SET meta_value = replace(meta_value, 'Existing URL','New URL');
  10.  
  11. UPDATE wp_links SET link_url = replace(link_url, 'Existing URL','New URL');
  12.  
  13. UPDATE wp_comments SET comment_content = replace(comment_content , 'Existing URL','New URL');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top