跳至正文

wordpress更换域名

如果更换之后无法加载样式,需要检查缓存文件,清除即可

UPDATE wp_options SET option_value = REPLACE(option_value,'old','new'); UPDATE wp_posts SET post_content = REPLACE(post_content,'old','new'); 
UPDATE wp_comments SET comment_content = REPLACE(comment_content,'old','new'); 
UPDATE wp_comments SET comment_author_url = REPLACE(comment_author_url,'old','new'); 
UPDATE wp_posts SET guid = REPLACE(guid,'old','new'); 

UPDATE wp_posts SET post_content=REPLACE(post_content,'old','new');
UPDATE wp_postmeta SET meta_value=REPLACE(meta_value,'old','new');
 -- 更换文章中出现的链接,如媒体文件

UPDATE wp_usermeta SET meta_value=REPLACE(meta_value,'old','new');
-- 更换用户头像链接

发表回复