Skip to content

Instantly share code, notes, and snippets.

@masumskaib396
Created November 21, 2019 05:02
Show Gist options
  • Save masumskaib396/068a392aaeaa656b8291e92733c73ee0 to your computer and use it in GitHub Desktop.
Save masumskaib396/068a392aaeaa656b8291e92733c73ee0 to your computer and use it in GitHub Desktop.
update wordpress local to server data
======================================
UPDATE wp_posts SET guid = replace(guid, 'localhostname','servername');
UPDATE wp_posts SET post_content = replace(post_content, 'localhostname', 'servername');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'localhostname','servername');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment