Try this one:
1. Go to Google, and type import mysql by ssh.
2. Then use some tool rename file to sql1 to sql400.sql
3. Write a loop on PHP or Perl to run that command import or just simple:
open notepad, type the command:
then copy and paste it on your SSH , enter, they will run line by line for you automatic.