I need to export a large database without foreign keys. What is the command to do this?
This is what I tried but I know this is incorrect.
mysqldump
you can use the --init-command flag on a per-session basis:
--init-command
mysql --init-command="SET SESSION FOREIGN_KEY_CHECKS=0;" ... < dump.sql