在 phpMyAdmin 中选择WP的数据库,然后点击 “SQL”,并在输入以下代码:
UPDATE wp_options SET option_value = replace( option_value, ‘www.mapoling.tk’, ‘www.jimu.ml’ ) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET post_content = replace( post_content, ‘www.mapoling.tk’, ‘www.jimu.ml’ ) ; UPDATE wp_posts SET guid = replace( guid, ‘www.mapoling.tk’, ‘www.jimu.ml’ ) ;
操作时注意把www.old.com改为你的旧域名,把 new.org 改为你的新域名。