mysql load sql from file
snippet in sql

mysql import sql file

user1765

mysql -u username -p database_name < file.sql

mysql load sql from file

user5274

 mysql> use db_name;
 mysql> source file_name.sql;