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

Code Example 1

CREATE DATABASE `mydb`;

CREATE TABLE `my_table`
(
	my_table_id INT AUTO_INCREMENT,
    my_table_name VARCHAR(30) NOT NULL,
    my_foreign_key INT NOT NULL,
    my_tb_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  	my_tb_updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, ,
    # Any other properties here
    PRIMARY KEY(my_table_id),
    CONSTRAINT fk_name_of_parent_table
    FOREIGN KEY(my_foreign_key) REFERENCES parent_table(parent_table_column)
);

SHOW DATABASES;

Code Example 2

CREATE DATABASE dbname;

Code Example 3

mysql> CREATE DATABASE databaseName;

Code Example 4

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 5

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 6

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

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

Learn ReactJs, React Native from akashmittal.com