I have several sql files and I want to import all of them at once into a MySQL database.
sql
I go to PHPMyAdmin, access the databa
PHPMyAdmin
You could also a for loop to do so:
#!/bin/bash for i in *.sql do echo "Importing: $i" mysql your_db_name < $i wait done
Source