修改WordPress日志的ID
修改WordPress日志ID需要4条SQL语句,我举一个例子,将ID为100的文章修改为ID为200,需要分条执行以下语句。其中的”wp_”为WordPress数据表的默认前缀,如果安装时有修改前缀的,请按情况修改。
update wp_posts set id = 200 where id = 100;
update wp_term_relationships set object_id = 200 where object_id = 100;
update wp_postmeta set post_id = 200 where post_id = 100;
update wp_comments set comment_post_ID = 200 where comment_post_ID = 100;
