Skip to content

Instantly share code, notes, and snippets.

@Shane24
Created May 31, 2013 18:41
Show Gist options
  • Select an option

  • Save Shane24/5687024 to your computer and use it in GitHub Desktop.

Select an option

Save Shane24/5687024 to your computer and use it in GitHub Desktop.
Wordpress database update thingy
UPDATE wp_options SET option_value = replace(option_value, 'http://ncd.localhost:8888', 'http://your-subdomain.logo24.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://ncd.localhost:8888', 'http://your-subdomain.logo24.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://ncd.localhost:8888', 'http://your-subdomain.logo24.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment