A database consists of one or more tables.
You will need special CREATE privileges to create or to delete a MySQL database.
The CREATE DATABASE statement is used to create a database in MySQL.
The following examples create a database named "myDB":
Note: When you create a new database, you must only specify the first three arguments to the mysqli object (servername, username and password).
Tip: If you have to use a specific port, add an empty string for the database-name argument, like this: new mysqli("localhost", "username", "password", "", port)