How to apply a .sql file to a database
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Login to your MySQL database via phpMyAdmin. 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.