Magento MySQL clean-up

Written by Peter Davies on .

Cleanup Magento database tables, including old quotes that never made it to checkout:

This can be setup to run daily via CRON using a simple shell script:

#!/bin/sh
/usr/bin/mysql -u root -ppassword < /client/magento-clean.sql