通常只需要运行这三分行命令即可:
UPDATE wp_posts SET post_content = REPLACE (post_content, ‘http://localhost/wpw/’, ‘http://www.china.com/’);
UPDATE wp_posts SET guid = REPLACE (guid, ‘http://localhost/wpw/’, ‘http://www.china.com/’);
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, ‘http://localhost/wpw/’, ‘http://www.china.com/’);