だいたいこれでいける。
1 2 3 4 5 6 7 |
set @from_url = 'http://before.example.com'; set @to_url = 'http://after.example.com'; update wp_options set option_value = replace(option_value, @from_url, @to_url); update wp_postmeta set meta_value = replace(meta_value, @from_url, @to_url); update wp_posts set post_content = replace(post_content, @from_url, @to_url); update wp_posts set guid = replace(guid, @from_url, @to_url); |