How to Dump Several MySQL Databases Into Text File



Use –databases option for exporting several databases.

mysqldump -u username -ppassword –databases db_name1 [db_name2 ...] >dump.sql

Leave a Reply

Your email address will not be published. Required fields are marked *