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

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com