mysqlminidump

Dumps your main table and all the required tables with foreign key constraints.