Change url to all the site in mysql

use database;

— SET SQL_SAFE_UPDATES=0;  //if is myworkbench

update wp_options
set option_value=replace(option_value,”previous_url”,”new_url”)
where option_value like “%previous_url%”;

update wp_posts
set guid=replace(guid,”previous_url”,”new_url”)
where guid like “%previous_url%”;

update wp_postmeta
set meta_value=replace(meta_value,”previous_url”,”new_url”)
where meta_value like “%previous_url%”;