# if your database is not locally hosted mysql -u username -p -h dbhost dbname < filename.sql
mysql -u<user_name> -puser_password> <database_name> source /path/db.sql
USE yourdb; SOURCE D:/My Folder with spaces/Folder/filetoimport.sql;