首先在phpmyadmin中,打开你wordpress的数据库,点击SQL选项,运行SQL查询。
下面是一次性删除wordpress所有文章的SQL语句:
delete from wp_posts where ID >= 1;
delete from wp_postmeta where meta_id >= 1;
如果想连同分类和标签一同删除,还需要执行下面的语句。
delete from wp_term_relationships where object_id >= 1;
delete from wp_term_taxonomy where term_id >= 1;
delete from wp_terms where term_id >= 1;
delete from wp_termmeta where meta_id >= 1;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)