How to apply a .sql file to a database
From Joomla! Documentation
Login to your MySQL database via phpMyAdmin [1]. Click the link to the Export section. Choose the SQL tab. Enter the code lines into the text box and press Go. You will be provided with the results of the command on this screen.