Anda di halaman 1dari 16

Data Access And Management Lab(CIND110)

Location:

VIC 402,404

Due:

7:30 PM,September 16,2016

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

bring your own computer


install a virtual machine sandbox (VirtualBox v4.3+)
install a virtual machine instance (Ubuntu 14.04 LTS)
install MySQL under Linux

Configuration 2
bring your own computer

install MySQL on your host operating system


Configuration 3

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

Step 2: Download Ubuntu Desktop


Go the download page and choose 32-bit
Link: http://www.ubuntu.com/download/desktop

Step 3: Install VirtualBox


Page 2

Page 3

Page 4

Page 5

Page 6

Double click on the yellow icon CIND110

Page 7

5.2 After a few minutes, install prompts up, click Install Ubuntu

Page 8

5.3 If everything goes well, you can Continue


5.4 Select Erase... and Install Now

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

View -> Switch to Fullscreen.

Step 6: Install MySQL


6.1 Open a terminal
6.2 Type the following, and Enter
sudo apt-get install mysql-server
Input the password, and type Y to continue.

Wait for a few minutes, then set a password for MySQL


6.3 After return to the terminal, type

Page 11

sudo service mysql restart


And enter

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

Anda mungkin juga menyukai