首页 > 建站心得 > Wordpress批量替换URL

Wordpress批量替换URL

2014-10-2 23:17 Thursday 作者:大吉岭红茶 建站心得
wordpress搬家换站换域名就得来一遍这个。。
 

UPDATE wp_options SET option_value = replace(option_value,'old','new');

UPDATE wp_posts SET guid = REPLACE(guid,'old','new');

UPDATE wp_posts SET post_content = REPLACE(post_content,'old','new');

发表评论: