【笔记】wordpress批量替换文章内容

wordpress搬家后,文章图片调用网站绝对路径,因更换了域名,故图片全挂。 进mysql,执行: UPDATE 数据表名 SET 字段名 = replace(字段名, '要替换的字符串', '替换为') ; 例: UPDATE wp_posts SET post_content = REPLACE( post_content, '原内容', ' 新内容' ) ;  
posted @ 2013-10-12 14:33  test.cfs  阅读(131)  评论(0编辑  收藏  举报