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

Code Example 1

mysqldump database_name > database_name.sql

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com