I have a database that I created using the CREATE DATABASE statement in the terminal and I have a .sql file full of statements creating tables and rows.
I just wanted to
If you have password for your dB then
mysql -u -p < yourfile.sql