# concat all dbs into one file mysqldump -u username -p --all-databases > dump.sql # restore mysql -u username -p < dump.sql