Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Clears test data (orders, logs, searches) during the testing phase
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
reset-customers.sql
reset-sales.sql
reset-searches.sql
reset-system-tables.sql
reset-tag-wishlist.sql

README.md

Clear Magento Database

Simple SQL modular queries to clear Magento tables filled with fake data during the development phase.

HOWTO

Connect to your Magento Database

 mysql> SET FOREIGN_KEY_CHECKS=0;

choose what to clear from your database full of data created during the development phase for example if I have to clear searches i will launch

 mysql> source reset-searches.sql

At the end remember to launch:

 mysql> SET FOREIGN_KEY_CHECKS=1;

REFERENCE

Original script taken from: Inchoo.net Improved with catalogsearch and divided in sub-queries.

Something went wrong with that request. Please try again.