Check out example codes for "mysql load sql from file". It will help you in understanding the concepts better.

Code Example 1

mysql -u username -p database_name < file.sql

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com