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

Code Example 1

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;

Code Example 2

MySQL implements a database as a directory that contains all files which correspond to tables in the database.

To create a new database in MySQL, you use the CREATE DATABASE statement with the following syntax:

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

Code Example 3

CREATE DATABASE mydatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

Code Example 4

CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
    [create_option] ...

create_option: {
    [DEFAULT] CHARACTER SET [=] charset_name
  | [DEFAULT] COLLATE [=] collation_name
}

Code Example 5

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

Code Example 6

USE dbname;

Learn ReactJs, React Native from akashmittal.com