To import data using this method, you will have to upload the SQL file in your account first and then login via SSH to the account. Once this is done, use the following command, replacing the name, username, host and password with your database logins:
mysql DB_NAME -uDB_NAME -hMYSQL_HOST -pPASSWORD < /home/www/path-to/file.sql