Comment

Tony

mysql already does this:
mysql -u uname dbname < file.sql

Replies

Peter Bengtsson

What if the file has DTML in it? With conditionals and parameters?
I think it's the same syntax for postgres but again it does have the same amount of magic :)