Skip to content

Instantly share code, notes, and snippets.

@lrhache
Created April 15, 2015 02:57
Show Gist options
  • Select an option

  • Save lrhache/68ddf56ac73d3dcae973 to your computer and use it in GitHub Desktop.

Select an option

Save lrhache/68ddf56ac73d3dcae973 to your computer and use it in GitHub Desktop.
Load up multiple .sql dump files into MySQL
find . -name '*.sql' | awk '{ print "source",$0 }' | mysql --batch -u xxx -p <database>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment