.sql files are just files full of SQL queries that create tables and load the data.
Login to a MySQL command prompt, 'use' the database you want to run the queries on and then the 'source' command to run them.
Something like this ..
mysql>source file.sql
|