first confirm file has the structure and schema and having saved with sql extension.
now u can do 2 things
1: u can login in mysql and type "source" following by "path" of the file.
2: without logging in it, import it by issuing mysqldump or mysqlimport command.
mysqlimport -f /path/of/the/file -d <database>