Plan A:
SET FOREIGN_KEY_CHECKS = 0; -- Disable foreign key checking.
TRUNCATE TABLE forums;
TRUNCATE TABLE dates;
TRUNCATE TABLE remarks;
SET FOREIGN_KEY_CHECKS = 1; -- Enable foreign key checking.
Plan B:
You should truncate child tables firstly, then parent tables.
Disabling foreign key checks risks entering rows into your tables that don’t adhere to the constraints which can cause undefined behavior.