MySQL Tutorial

A database system used with PHP.

MySQL Create DB

MySQL CREATE DATABASE Statement

The CREATE DATABASE statement is used to create a new SQL database.

Syntax:

CREATE DATABASE databasename;

Make sure you have admin privilege before creating any database. Once a database is created, you can check it in the list of databases with the following SQL command: SHOW DATABASES;

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics