mysql create database
snippet in sql

create database in mysql

user8206

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;

mysql create database

user5766

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

Basic Syntax:
CREATE DATABASE databasename; 
----------------------------------------------------------------------------------
CREATE DATABASE Example
The following SQL statement creates a database called "testDB":

Example:
CREATE DATABASE testDB;

create databaste mysql

user3443

mysql> CREATE DATABASE databaseName;

MySQL CREATE DATABASE

user1122

MySQL implements a database as a directory that contains all files which correspond to tables in the database.

To create a new database in MySQL, you use the CREATE DATABASE statement with the following syntax:

CREATE DATABASE [IF NOT EXISTS] database_name
[CHARACTER SET charset_name]
[COLLATE collation_name]

mysql create database

user1844

CREATE DATABASE mydatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

mysql create database

user1364

CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
    [create_option] ...

create_option: {
    [DEFAULT] CHARACTER SET [=] charset_name
  | [DEFAULT] COLLATE [=] collation_name
}