1.
to set password
# mysql -u root -p ( then press enter)
output: Enter password (press enter)
2.create database
maria DB[(none)]>create database satyam; (press enter)
3.show databases
maria DB[(none)]>show databases;(press enter)
4.drop databases
maria DB[(none)]>drop database satyam;(press enter)
5.Entered in database
maria DB[(none)]>use satyam; (press enter) (note:satyam is used as database)
6.create table in database
maria DB[satyam]>create table kamal(id int,Name varchar(50),contact int(12),Gmail
varchar(25),Age int(2)); (press enter))
(note: kamal is used as table)
7.To see the table details
maria DB[satyam]>desc kamal; (press enter)
8.Input value in table fields
maria DB[satyam]>insert into
kamal(id,name,contact,gmail,age)value(101,"Rajbeer",7007926800,"satyamsharma204@gma
il.com",22);
9.show input values in table fields
maria DB[satyam]>select * from kamal;(press enter)