how to check create database in mysql code example
Example 1: how to see database in mysql command line
SHOW DATABASES;
Example 2: create database in mysql
The CREATE DATABASE statement is used to create a new SQL/MySQL database.
Syntax
CREATE DATABASE databasename;
CREATE DATABASE Example
The following SQL statement creates a database called "testDB":
Example
CREATE DATABASE testDB;
Example 3: how to see database in mysql command line
mysql -u user -p