Forum Moderators: coopster
You can run shell commands from a PHP script with commands like exec() and system(). Check the manual to find out which one is right for you.
I'm not 100% sure of the syntax, but something like this might work:
<?php
exec("mysql -u [username] -p[password] -D [database] < dump.sql");
?>