The Syntax to create a database in MySQL Server is "CREATE DATABASE database_name;"
Create Database Syntax:
CREATE DATABASE database_name;
Let us see a few examples of different ways in which you can create one,
Example 1: Using the mysql prompt in Terminal
on macOS/Linux/Windows:
mysql> Create Database mydb1;
Example 2: Using MySQL Workbench

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
on macOS/Linux/Windows:
mysql> Create Database mydb1;
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!

Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!