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

Code Example 1

mysqldump database_name > database_name.sql

Code Example 2

mysql -u [user] -p [database_name] < [filename].sql

Learn ReactJs, React Native from akashmittal.com