The MySQL database creation command is: CREATE DATABASE database_name;, where database_name is the name of the database to be created. The execution steps include: 1. Connect to the MySQL server; 2. Use the CREATE DATABASE command; 3. Use a semicolon (;) to end the command.
MySQL Create Database Command
The command to create a MySQL database is CREATE DATABASE
.
Syntax:
<code class="sql">CREATE DATABASE database_name;</code>
Description:
database_name
Specify the database to be created The name. ;
) at the end of the statement is necessary. Example:
<code class="sql">CREATE DATABASE my_database;</code>
Execution:
To execute the CREATE DATABASE
command, Please perform the following steps:
CREATE DATABASE
command. ;
) to end the command. Note:
CHARACTER SET
and COLLATE
clauses. The above is the detailed content of What is the command to create a database in mysql?. For more information, please follow other related articles on the PHP Chinese website!