I have a table "student" table and "evaluation" table that refers to "student", when i tried DELETE any data, it's ok, but when i try to truncate it, it failed with message:
ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key constraint (`testdb`.`evaluation`, CONSTRAINT `fk_relationship_18` FOREIGN KEY (`stu_id`) REFERENCES `testdb`.`student` (`id`))
it shows the same error even when student table is empty.. any reason why this happens? or i should google how to reset the auto increment manually.