puede usar el --init-command marcar por sesión: mysql --init-command="SET SESSION FOREIGN_KEY_CHECKS=0;" ... < dump.sql