Introduction
There are many ways to create a database, and many applications exist to handle them; one of them is from the command prompt. Generally, SQL is used for the manipulation of data from the database.
What is SQL?
SQL stands for Structured Query Language. It is the programming language that communicates with the databases. SQL has often pronounced Sequel. SQL stores, retrieve, manages, and manipulates data within a DBMS. The SQL shows data in a table format. SQL uses keywords for performing sets of operations, and these keywords are called statements.
How to execute SQL statements from the command prompt?
Step 1
To Install a SQL Server or XAMPP Server.

Step 2
To open a command prompt from windows explorer, go to the MySQL Server bin folder, type from the folder path section cmd, and then enter.

Before executing SQL statements, we start XAMPP Server.

Step 3
Now we check whether SQL is adequately installed or not.
mysql -u root -p

By default SQL Server password is blank. If you have created a password, enter; otherwise, press enter. It generates a response Welcome message, which means SQL is appropriately installed.
Step 4
Now we create a new database; it is very easy to create a new one; write CREATE DATABASE and the database name.
create database article;

Check whether the Article database creates or not.
show databases;

Step 5
Here we use the article database.
use article;










Join the conversation! Your thoughts help the community grow.