执行下面查询

UPDATE wp_options SET option_value = replace(option_value, '老域名','新域名') ;
UPDATE wp_posts SET post_content = replace(post_content, '老域名','新域名') ;
UPDATE wp_posts SET guid = replace(guid,'老域名','新域名');
UPDATE wp_comments SET comment_content = replace(comment_content, '老域名', '新域名') ;
UPDATE wp_comments SET comment_author_url = replace(comment_author_url, '老域名', '新域名') ;
UPDATE wp_users SET user_url = replace(user_url,'老域名','新域名');
最后修改:2022 年 08 月 29 日
如果觉得我的文章对你有用,请随意赞赏