Lab Manual
Lab Manual
Location:
VIC 402,404
Due:
Goal: To introduce the students to the lab environment and install and setup MySQL on
students' machines.
Instructions:
Students are expected to complete assigned lab activities during the lab
portion of each class meeting in the Vic labs.
Students are *not* to complete lab activities at home, and *do not* have home
computers configured to do lab activities at home.
Students having issues with computers in the Vic Labs can contact the GA/TA
of the course.
Lab Environment:
This lab-intensive course provides hands-on experience on putting database into practice.
The labs are designed to gradually apply database knowledge learned on class, and there
is a strong dependency between each section.We will be using MySQL Community
Server v5.5+ and ERwin Data Modeler in this lab and public computers in the lab room
(VIC 402) are available to use during lab hours.
Recommended Configurations:
Configuration 1
Configuration 2
bring your own computer
use the lab computer, and bring a large USB (8+GB) drive
install a virtual machine sandbox
for the first time, install a virtual machine instance and MySQL
for the rest, load the VM image from USB, and copy back after lab
Installation Steps:
Configuration 1:
Step 1: Download VirtualBox
Go to the download page and choose the right version by your OS platform
Link: https://www.virtualbox.org/wiki/Downloads
Page 3
Page 4
Page 5
Page 6
Page 7
5.2 After a few minutes, install prompts up, click Install Ubuntu
Page 8
Page 9
5.5 Next 2 steps set user preference, local time, and keyboard
5.6 Set your user name and password. REMEMBER this password, and click Continue
5.7 Wait for a few minutes, install is done after restart. Restart Now
5.8 Log in the Ubuntu, and at the VM menu, Devices -> Install Guest Additions CD
Image. Click Run
in Ubuntu dialogue, and input the password. Click Authenticate
Restart (click right upper corner, shut down, restart), and step 5 finishes.
At this point of time, you should be able to enable full screen view of your virtual box, at
the menu bar
Page 10
Page 11
Step 7: Verification
At the terminal, type
mysql -u root -p
Enter and type in your password.
The following screen indicates MySQL is installed successfully
Configuration 2:
Page 12
Install MySQL on your host operating system.Since there are various types of operating
systems (Windows, Linux, Mac OS), so this document is not able to cover all flavors.
Configuration 3:
use the lab computer, and bring a large USB (8+GB) drive
install a virtual machine sandbox
for the first time, follow Part A to install a virtual machine instance and MySQL
for the rest, load the VM image from USB, and copy back after lab
Following Configuration 1,
Step 1: Find the location of your VM.
At the VirtualBox panel, select your VM and click Settings
Page 13
In the Storage view under Controller, you should be able to see the Location.
Page 14
Open that folder, copy the entire CIND110 folder into your USB disk. Now your lab
setting goes with you.
Step 2: Load your lab settings
Any time you want to try the lab (at home, or at the lab provided VirtualBox is
installed), just load the VM settings.
Copy the VM folder from your USB disk to a computer, and in the VirtualBox
panel,
select Machine ->Add.
After loading your VM, you can do all the labs (coming soon) normally.
Remember to copy back to your USB disk after shutting down.
Page 15
Page 16