清除Magento的数据库日志文件
以Phpmyadmin为例:先备份你的数据库,选择你要清空的数据库,点击SQL,然后在对话框中输入:
truncate dataflow_batch_export;
truncate dataflow_batch_import;
truncate log_customer;
truncate log_quote;
truncate log_summary;
truncate log_summary_type;
truncate log_url;
truncate log_url_info;
truncate log_visitor;
truncate log_visitor_info;
truncate log_visitor_online;
truncate report_viewed_product_index;
truncate report_compared_product_index;
truncate report_event;
set foreign_key_checks = 0;
truncate index_process_event;
truncate index_event;
set foreign_key_checks = 1;
你可以对比一下清空前后的数据库大小的。{jcomments off}