Check out example codes for "xampp import sql file command line". It will help you in understanding the concepts better.

Code Example 1

C:\xampp\mysql\bin>mysql -u {DB_USER} -p {DB_NAME} < path/to/file/ab.sql

Learn ReactJs, React Native from akashmittal.com