18:52:10 TRUNCATE TABLE customers Error Code: 1701. Cannot truncate a table referenced in a foreign key constraint (`coffee_store`.`orders`, CONSTRAINT `orders_ibfk_2`) 0.0037 sec code example
Example: how to force truncate a table in mysql
DELETE FROM mytest.instance;
ALTER TABLE mytest.instance AUTO_INCREMENT = 1;