Green University of Bangladesh
Department of Computer Science and Engineering
Lab Report
Course Code : CSE 210
Course Name : Database System Lab
Experiment Number : 01
Experiment Name : Introduction to MySQL
Submitted By: Submitted To:
Name : Nahim Ahmed Rimon Name : Md. Shakhawat Hossain
Id : 182002032 Designation : Lecturer
Section: DB Dept. Of CSE
Date of Performance : 05-02-2020
Date of Submission : 12-02-2020
Remarks:
1. Objective
The objective of this experiment is to learn about the basics of database and
how to create a database and a table in that database.
2. Equipment
A computer (we using windows operating system)
Xampp Software
3. What Is Database
A database is an organized collection of data, generally stored and accessed
electronically from a computer system. Where databases are more complex
they are often developed using formal design and modeling techniques.
4. Starting Xampp Server
• At first we need to install xampp on the computer.
• Go to the directory where you installed xampp.
• Find xampp-control.exe and open it.
• Start both Apache and MySQL.
5. Instructions
• Go to this directory xamppmysqlbin.
• Write down the address of that directory.
• Go to the windows search operation and search for cmd or hold down
windows button +R and type cmd and click OK.
• This will open windows Command prompt.
• Type (cd/) and press Enter.
• Now type the drive name and press enter.
• Type “cd xampp\mysql \bin” and press Enter.
• Now type “mysql -u root -p -h 127.0.0.1” and press enter. It will want
password, we need to press ‘Enter’ again.
6. Creating A New Database & A Table
• Now if we type ‘show databases’, it will show all databases.
• To create new database we will use ‘create’ :
“create database Movies;”
• To use the created database : “use Movies;”.
• To create a table : CREATE TABLE MovieList (serial int(11)unsigned
auto increment primary key not null, Cinema name VARCHAR(40)
not null, Relesed date varchar(25) not null);
• If we use “show tables” command we can see the all tables in the
database.
A New Databas & Table.