MySQL Database

MySQL Database

Create, use (set the current database) and drop MySQL database syntax and example.

MySQL database syntax

CREATE DATABASE database_name;
USE database_name;
DROP DATABASE database_name;

Create database example

CREATE DATABASE test;

Set current database example

USE test;

Drop database example

DROP DATABASE test;