Check out example codes for "how to import mysql database command line". It will help you in understanding the concepts better.

Code Example 1

mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql

Code Example 2

# if your database is not locally hosted
mysql -u username -p -h dbhost dbname < filename.sql

Code Example 3

mysql>create database yourDatabaseName;
mysql>use yourDatabaseName;

Learn ReactJs, React Native from