Posted in Command Line, Linux Import All MySQL Sql Dumps in a Folder Binny V A December 1, 2008 Leave a Comment on Import All MySQL Sql Dumps in a Folder This command will import all the MySQL sql dumps in the current folder. You can use this to restore your backuped databases. for i in *; do mysql -uroot `basename $i .sql` < $i; done Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.