Skip to content

Instantly share code, notes, and snippets.

@alkrauss48
Last active September 4, 2016 03:33
Show Gist options
  • Save alkrauss48/741ef4e063b09c12a749 to your computer and use it in GitHub Desktop.
Save alkrauss48/741ef4e063b09c12a749 to your computer and use it in GitHub Desktop.
Change Wordpress Base URL via SQL
# Changing the main site url and home url locations for Wordpress via SQL
# Useful when migrating database across environments
update wp_options set option_value = 'new_url' where option_name IN ('siteurl', 'home');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment