To establish a new SQL database, use the CREATE DATABASE statement.
Syntax
CREATE DATABASE databasename;
CREATE DATABASE Example
A database named “testDB” is created with the SQL query that follows:
Example
CREATE DATABASE testDB;
Tip: Before creating any databases, confirm that you have administrator privileges. After a database is created, use the following SQL query to view it in the list of databases: Show databases;