Monday 14 December 2015

How to clean logs through database in Magento?

If you want to delete Magento logs through database. So truncate the some table which have logs data. So execute following sql query in database:




SET foreign_key_checks = 0;
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;
TRUNCATE index_event;
TRUNCATE catalog_compare_item;
SET foreign_key_checks = 1;




4 comments:

  1. This is a post which informs about that how to clean logs through database in magento. Its really impressive and well maintained. Thanks for this post, keep updating.
    Buy pitambari sapphire online

    ReplyDelete
  2. Really an awesome post, thanks for it and keep updating.
    piles surgery in delhi

    ReplyDelete
  3. This kind of posts really impressed. thanks for it.
    sri lankan sapphire online

    ReplyDelete