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

Code Example 1

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

Code Example 2

mysql -u username -p database_name < file.sql

Code Example 3

mysql -u username -p database_name < file.sql
; OR
 mysql> use db_name;
 mysql> source file_name.sql;

Learn ReactJs, React Native from akashmittal.com