mysql 5.7 disable constraints check code example Example: mariadb disable foreign key checks SET FOREIGN_KEY_CHECKS=0;