MySQL
MySQL

wordpress数据库操作备查20120715

目标:更新picasaweb图片的引用url,把所有'http://lh'开头的url修改为'https://lh'开头 update wp_posts set post_content=replace(post_content,'http://lh','https://lh'); 目标:上次合并删除了冗余的帖子,其中的回复也一并删了,把删除的回复整合到现在的帖子中 搜索所有已删除的帖子(回收站只保留了需要操作的文章4篇) select id from wp_posts where post_status='trash'; +------+ | id | +------+ | 5676 | | 5677 | | …