Check out example codes for "export mysql table to file". It will help you in understanding the concepts better.

Code Example 1

mysqldump db_name tbl_name;

Learn ReactJs, React Native from akashmittal.com