Import multiple sql files

ls -1 *.sql | awk '{ print "source",$0 }' | mysql --batch -u {username} --password={password} {dbname}

Leave a Reply

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