Check if MySQL is already installed on my computer or not.
Open Command Prompt.
Gave command: mysql — version
mysql Ver 8.0.44 for Win64 on x86_64 (MySQL Community Server – GPL)
Otherwise show: ‘mysql’ is not recognized as an internal or external command,
Install MySQL software.
To start MySQL :
Open Command Prompt.
Gave command: mysql – u root -p
Type the password.
Then the prompt will be MySQL>
To see all Databases :
Show databases;
To create a Database:
create database sdb;
A database created with the name of sdb. Here, sdb is a database name.
How to activate a database:
Use sdb;
To see which Database is presently active:
Select database();
To see Tables in a Database:
Show tables;
To Stop/Exit from Database:
Exit or Quit