From https://tombevers.me/2013/10/14/how-to-truncate-a-foreign-key-constrained-table/
SET FOREIGN_KEY_CHECKS=0; TRUNCATE table1; TRUNCATE table2; SET FOREIGN_KEY_CHECKS=1;