Introduction
Creating a database in MySQL is exceptionally as you only have to execute one SQL statement after logging in.
Step-by-Step
Open a terminal and run the following commands.
mysql -u root -p
This will open the mysql> prompt.
CREATE DATABASE mytest;