meliudaj,
Just put command you would want to run many times in a file
Code:
drop database test;
create database test;
use test
source db.sql
Then mysql -f mysql < resource-db.sql
I am pretty sure you have to specify a DB in the last line there. But you can't specify the one you want to drop. You can try it without listing the DB, but i don't know if that works.