Import the sql file via ssh
upload the sql file & login to ssh & cd to the dir where you uploaded the file
then

mysql -u username -p data-base-name < data.sql