In this article we will see "How to create a Database in MySql" and "MySql CREATE DATABASE query syntax with example".

"CREATE DATABASE" query syntax

"CREATE DATABASE" is used to create new database in MySql, the syntax is as follow.


CREATE DATABASE databasename;

"CREATE DATABASE" query example

"CREATE DATABASE" is used to create new database in MySql, as shown in the example below.


CREATE DATABASE testDatabase;

Here "testDatabase" is the name of newly created database.

In this article we have seen"How to create a Database in MySql", in upcoming articles we will see more about Mysql syntax and queries with example.
  • By Techburps.com
  • Oct 16, 2017
  • MySql