Skip to content

Instantly share code, notes, and snippets.

@neps-in
Last active September 23, 2019 09:35
Show Gist options
  • Save neps-in/1c9300de7dee26df3bbd00c33713d931 to your computer and use it in GitHub Desktop.
Save neps-in/1c9300de7dee26df3bbd00c33713d931 to your computer and use it in GitHub Desktop.
set base_url of wordpress using mysql commandline or phpmyadmin
-- Mysql commandline option to change the baseurl or siteur or home url of a wordpress website
-- This option will be handy, when you are not able to loging to admin panel of wordpress website.
update wp_options set option_value='http://newwebsite.com' where option_name = 'siteurl';
update wp_options set option_value='http://newwebsite.com' where option_name = 'home';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment