mysqldump --all-databases with multiple output file code example Example: export all databases mysql # Export mysqldump -u root -p --all-databases > all.sql