upload your SQL file to the serve through FTP. Ones the file is on server you can user the following command.
mysql -u db_user_name -p db_name < /complete/file/path.sql
If you are using amazon RDS, you need to alter the command by adding the host to the command
mysql -h host -u db_user_name -p db_name < /complete/file/path.sql
Queries and comments are welcome.