MySQL Utilities MySQL Tutorial

Put the commands you want to run in a file.

shell> mysql < batch-file