Check out example codes for "import mysql dump database command line linux". It will help you in understanding the concepts better.

Code Example 1

mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql

Learn ReactJs, React Native from akashmittal.com