in reply to Using an External SQL Query file?

Generally, that file is created using mysqldump, and can be fed into mysql to re-create the tables. The documentation for mysqldump should provide everything you need.