You could parse the file with PHP and create mysql_exec commands. Alternatively, call the "mysql" binary from within php (if you have permission) and use the "mysql database < file" string.
I suspect the php gurus will be more help than the database bods.
try the PHP forums.
a