execute mysql file
snippet in sql

execute mysql file

user1203

mysql -u yourusername -p yourpassword yourdatabase < text_file

mysql load sql from file

user831

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