Skip to content

Instantly share code, notes, and snippets.

@caingougou
Created February 22, 2011 07:41
Show Gist options
  • Select an option

  • Save caingougou/838341 to your computer and use it in GitHub Desktop.

Select an option

Save caingougou/838341 to your computer and use it in GitHub Desktop.
batch run sql files
find /fold/of/sql/files/ -name "*.sql" |sort -n|awk '{print "source", $0}' | mysql --batch -u root -p -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment