Account
Categories

MySQL CREATE DATABASE Command


Defination:

The CREATE DATABASE command is used to create a database.

To do this, you type CREATE DATABASE.

It holds tables, and those tables store data.

It is like a container where all tables and records related to this database are stored.

Syntax:

CREATE DATABASE database_name;

Example:

CREATE DATABASE mydb1;

Output:

Query OK, 1 row affected (0.01 sec)