mysql disable all foreign key constraints for table code example
Example 1: foreign key set 0
SET FOREIGN_KEY_CHECKS=0;
Example 2: mariadb disable foreign key checks
SET FOREIGN_KEY_CHECKS=0;
SET FOREIGN_KEY_CHECKS=0;
SET FOREIGN_KEY_CHECKS=0;