WordPress的MySQL数据库中更换域名的语句
UPDATE wp_options SET option_value = replace(option_value, 'www.旧域名.com','www.新域名.com') ;
UPDATE wp_posts SET post_content = replace(post_content, 'www.旧域名.com','www.新域名.com') ;
UPDATE wp_comments SET comment_content = replace(comment_content, 'www.旧域名.com', 'www.新域名.com') ;
UPDATE wp_comments SET comment_author_url = replace(comment_author_url, 'www.旧域名.com', 'www.新域名.com') ;