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

Code Example 1

The CREATE DATABASE statement is used to create a new SQL/MySQL database.

Syntax
CREATE DATABASE databasename;

CREATE DATABASE Example
The following SQL statement creates a database called "testDB":

Example
CREATE DATABASE testDB;

Code Example 2

mysql> CREATE DATABASE databaseName;

Code Example 3

CREATE DATABASE dbname;

Code Example 4

USE dbname;

Code Example 5

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

Code Example 6

The SQL CREATE DATABASE Statement
The CREATE DATABASE statement is used to create a new SQL database.

Basic Syntax:
CREATE DATABASE databasename; 
----------------------------------------------------------------------------------
CREATE DATABASE Example
The following SQL statement creates a database called "testDB":

Example:
CREATE DATABASE testDB;

Learn ReactJs, React Native from akashmittal.com