虽然phpcms后台有一键清理数据功能,但是清理得不够彻底,以下清空常用数据库表的SQL语句可以帮助我们快速干净得清理数据库记录,进入本地phpmyadmin数据库管理软件并选择相应数据库,复制以下语句并粘贴到SQL语句里运行即可。
TRUNCATE TABLE fc_category; TRUNCATE TABLE fc_keyword; TRUNCATE TABLE fc_keyword_data; TRUNCATE TABLE fc_news; TRUNCATE TABLE fc_news_data; TRUNCATE TABLE fc_page; TRUNCATE TABLE fc_position_data; TRUNCATE TABLE fc_search; TRUNCATE TABLE fc_toutiao; TRUNCATE TABLE fc_type; TRUNCATE TABLE fc_attachment; TRUNCATE TABLE fc_attachment_index; TRUNCATE TABLE fc_collection_content; TRUNCATE TABLE fc_collection_history; TRUNCATE TABLE fc_collection_program; TRUNCATE TABLE fc_hits; TRUNCATE TABLE fc_message; TRUNCATE TABLE fc_message_data; TRUNCATE TABLE fc_message_group; TRUNCATE TABLE fc_pay_account; TRUNCATE TABLE fc_pay_payment; TRUNCATE TABLE fc_pay_spend; TRUNCATE TABLE fc_plugin; TRUNCATE TABLE fc_plugin_var; TRUNCATE TABLE fc_position; TRUNCATE TABLE fc_position_data; TRUNCATE TABLE fc_product; TRUNCATE TABLE fc_product_data; TRUNCATE TABLE fc_log; TRUNCATE TABLE fc_queue; TRUNCATE TABLE fc_release_point; TRUNCATE TABLE fc_search; TRUNCATE TABLE fc_search_keyword; TRUNCATE TABLE fc_session; TRUNCATE TABLE fc_special; TRUNCATE TABLE fc_special_content; TRUNCATE TABLE fc_special_c_data; TRUNCATE TABLE fc_sphinx_counter; TRUNCATE TABLE fc_sso_admin; TRUNCATE TABLE fc_sso_applications; TRUNCATE TABLE fc_sso_members; TRUNCATE TABLE fc_sso_messagequeue; TRUNCATE TABLE fc_sso_session; TRUNCATE TABLE fc_sso_settings; TRUNCATE TABLE fc_tag; TRUNCATE TABLE fc_template_bak; TRUNCATE TABLE fc_times; TRUNCATE TABLE fc_toutiao; TRUNCATE TABLE fc_toutiao_list; TRUNCATE TABLE fc_video; TRUNCATE TABLE fc_video_data; TRUNCATE TABLE fc_vote_data; TRUNCATE TABLE fc_vote_option; TRUNCATE TABLE fc_vote_subject;