You can run the following command on the terminal to import the data to the MySQL database.
mysql -u user_name -p database_name < filename.sql