To restore a .sql file, copy the file to bin folder of mysql installation and give the following command on command prompt while being in bin folder of mysql installation:
mysql --add-drop-tables -u [rootuser] -p [databasename] < [filename.sql]
replace [rootuser] with your username of root user.
replace [databasename] with the name of database in which you want to import.
replace [filename.sql] with the name of .sql file.
If need further help, let me know.