http://qs321.pair.com?node_id=703247


in reply to Importing MySQL dump file remotely

A simple, non-perl solution would be to use the local mysql client:

mysql -hserver -p < dump.sql
The password should be set in your .my.cnf (or equiv). Specify the database for loading single db dumps.

If the mysql client isn't available locally, install it; it's worth the small effort.