how to create db in mysql standard way code example
Example 1: create database if not exists
CREATE DATABASE [IF NOT EXISTS] database_name;
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;