0% found this document useful (0 votes)
14 views

Shell Coding For Command Prompt Codin

The document outlines the steps to set a password for MySQL, create and drop databases, create a table within a database, insert values into the table fields, and select the inserted values.

Uploaded by

satyam sharma
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Shell Coding For Command Prompt Codin

The document outlines the steps to set a password for MySQL, create and drop databases, create a table within a database, insert values into the table fields, and select the inserted values.

Uploaded by

satyam sharma
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

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)

You might also like