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

Code Example 1

mysqldump -u username -p dbname > filename.sql

Code Example 2

mysql -u username -p dbname < filename.sql

Learn ReactJs, React Native from akashmittal.com