Check out example codes for "how to create database using cmd mysql". It will help you in understanding the concepts better.

Code Example 1

CREATE DATABASE [IF NOT EXISTS] database_name
[CHARACTER SET charset_name]
[COLLATE collation_name]

Learn ReactJs, React Native from akashmittal.com