










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











DATABASE MANAGEMENT SYSTEM LAB MANUAL 1 | P a g e
By the end of this lab, students will be able to: Understand the basic concept of a database. Understand what a Database Management System (DBMS) is. Differentiate between a file system and a database system. Understand the basic components of a database. Understand the purpose of MySQL. Explore the basic interface of MySQL Workbench. Connect to a MySQL server using MySQL Workbench. Create a database using SQL. Select and view a database in MySQL Workbench. Understand the basic relationship between a database, table, rows, and columns.
Hardware PC or Laptop Minimum 4 GB RAM Keyboard and Mouse Internet connection Software MySQL Server MySQL Workbench Windows / Linux / macOS operating system Web browser for accessing learning resources, if required Other Requirements Access to LMS Student's assigned lab folder for saving screenshots Basic knowledge of computer operation
Data is a collection of raw facts and values that can be stored and processed. Examples: Student name Student ID Course name
DATABASE MANAGEMENT SYSTEM LAB MANUAL 2 | P a g e Marks Phone number Address For example: Muqadus 2026-CS- Database Systems These individual values are examples of data.
A database is an organized collection of related data that can be stored, accessed, and managed efficiently. For example, a university may need to store information about: Students Teachers Courses Departments Marks Attendance Instead of keeping this information in separate unorganized files, it can be stored in a structured database. Example: A student database may contain: Student_ID Name Program Semester 101 Ali BSCS 5 102 Sara BSSE 6 103 Ahmed BECSE 4 Here, the information is organized in a structured form.
A file system stores data in separate files and folders. For example, a university might store: Students.xlsx Teachers.xlsx Courses.xlsx Attendance.xlsx Marks.xlsx Each file may contain related information. A file system can be useful for simple data storage, but managing large amounts of related data can become
DATABASE MANAGEMENT SYSTEM LAB MANUAL 4 | P a g e SQL commands are generally written in the SQL Editor of MySQL Workbench.
Objective To open MySQL Workbench and establish a connection with the MySQL Server. Steps
DATABASE MANAGEMENT SYSTEM LAB MANUAL 5 | P a g e Active MySQL connection SQL Editor Paste the screenshot below:
DATABASE MANAGEMENT SYSTEM LAB MANUAL 7 | P a g e
Take a screenshot showing the newly created database. Paste the screenshot below:
Objective To view the databases available on the MySQL server. Execute: SHOW DATABASES; Observe Look at the output generated by MySQL Workbench. Identify: System/default databases The database created by you Task Take a screenshot of the output. Paste the screenshot below:
DATABASE MANAGEMENT SYSTEM LAB MANUAL 8 | P a g e
Objective To select a database for further operations. Execute: USE UniversityDB; After executing the command, observe the message shown by MySQL Workbench. Verify the selected database Execute: SELECT DATABASE(); Observe the result. Task Take a screenshot showing the executed commands and their output. Paste the screenshot below:
DATABASE MANAGEMENT SYSTEM LAB MANUAL 10 | P a g e Take a screenshot showing: UniversityDB Tables Students table Paste the screenshot below: PRACTICAL ACTIVITY 6 — VIEW TABLE STRUCTURE Objective To inspect the structure of the table created in the previous activity. Execute: DESCRIBE Students; or: DESC Students; Observe the output. Students should identify: Column names Data types Null information Key information Default values
DATABASE MANAGEMENT SYSTEM LAB MANUAL 11 | P a g e Task Take a screenshot of the output. Paste the screenshot below: PRACTICAL ACTIVITY 7 — VIEW TABLES Execute: SHOW TABLES; Observe the result. Task: Take a screenshot of the output.
DATABASE MANAGEMENT SYSTEM LAB MANUAL 13 | P a g e Column Suggested Data Type Instructor VARCHAR(50)
DATABASE MANAGEMENT SYSTEM LAB MANUAL 14 | P a g e Column Suggested Data Type Task 4 — Verify the Database Display the available databases. Task 5 — Verify the Table Display the tables of the selected database.
DATABASE MANAGEMENT SYSTEM LAB MANUAL 16 | P a g e Task 7 — Workbench Verification Refresh the Schemas panel and verify that: CollegeDB ↓ Tables ↓ Courses is visible.
DATABASE MANAGEMENT SYSTEM LAB MANUAL 17 | P a g e Deliverables must submit screenshots of: