How to Create a MySql DataBase using the command line AKA CLI.

If You have CLI access to MYSQL this is the Simplest, and Quickest Method Possible  to create a MySQL database.

The whole thing consists of this —->  CREATE DATABASE ‘your_database_name’;

What you actually type out on the command line or “query window”.

CREATE DATABASE blue;

Simple Command for creating a MYSQL database using the command line aka CLI.

Simple Command for creating a MYSQL database using the command line aka CLI.

 

 

 

 

There, the database named blue has been created. The output should like like the image below.

Successful Output of "CREATE DATABASE blue;"

Successful Output of “CREATE DATABASE blue;”

 

 

 

Now You can start adding tables to Your database.

Leave a Reply

Your email address will not be published. Required fields are marked *