Forum Moderators: coopster
If you haven't created even an empty database on your local machine, add to the top of database_name.sql, something like:
CREATE DATABASE database_name;
USE database_name;
Then, at the command line on your local machine (not in the mysql client):
mysql -u username -p < database_name.sql
...this assumes that you're in the same directory as database_name.sql and mysql is in your paths--or you've put database_name.sql in the same directory as mysql, and that's where you are on the command line too...
I hope this helps.