Bobby's Blog

Importing a Large Number of .sql Files to MySQL in One Go!

import sql files in one go

Here’s a script that would import all of the .sql files in your current directory.

I usually use that in case there are a lot of separate MySQL tables which need to be imported in one single database:

This could be quite useful if you have a lot of tables exported in .sql format which you need to import in a specific database.

Hope that it helps someone 🙂


About the author

Bobby

Linux System Administrator