Man... That must take you ages. If you've got shell access then just make a text file with all of the SQL commands you want and then use the mysql command