Here’s a command for inserting .sql files into a new database
mysql -u root -p database_name < db.sql