Check out example codes for "how to export db from mysql". It will help you in understanding the concepts better.

Code Example 1

mysqldump -u username -p dbname > dbexport.sql

Learn ReactJs, React Native from akashmittal.com