terrible syntax
Showing posts with label
mysql
.
Show all posts
Showing posts with label
mysql
.
Show all posts
Monday, November 14, 2011
import sql files
import all files matching *.mysql in current directory into database "db"
for f in *.mysql; do echo $f && mysql -u username -psecretpw db < $f ; done
echos the file name as it goes
Older Posts
Home
Subscribe to:
Posts (Atom)