Assignments 1 through 4 all queried the DCRIS database. Now you must create your own database schema on hopper, the Department's student server. Your database must be in at least Boyce-Codd Normal Form.
As the hopper database administrator we will access your database directly after the due date. There is no dropbox and nothing to submit through MLS.
You cannot create a new database schema. You have a database schema and login available to you on hopper. The schema and login are named with your Laurier user ID. e.g. if your email address is barn4520@mylaurier.ca , then your database schema/login is barn4520 . The default password is:
which we suggest you change at your earliest opportunity. You may change your password from a DBMS query dialog box with the following command:
ALTER USER your login IDENTIFIED BY 'new password';
Passwords must have:
Your login also allows you to access the DCRIS database.
Use the hopper
phpMyAdmin web front end to login to the hopper
MySQL
database and access your schema.
phpMyAdmin is fairly straightforward to use, so we aren't going to document it ourselves. There are, however, many tutorials available online - Google is your friend. Having said that, we strongly suggest not waiting until the day before the assignment is due to get started on using phpMyAdmin.
In your schema, create a database that consists of:
INT
,
CHAR
, VARCHAR(n)
, DATE
, DATETIME
,
LONGTEXT
, DECIMAL
in at least one of the
tablesON
DELETE/ON UPDATE CASCADE
constraintON
DELETE/ON UPDATE RESTRICT
constraintNULL
as the default valueDATETIME
field with
a default value of the current date/timeDATE/TIME
field
with a custom default value of your choiceCHECK
constraint(Use the checkboxes when finished to check off the requirements to make sure you have met them all.)
The point of using the techniques above is to make sure that your database meets all of the normal forms.
The data stored in your database is up to you. No two students in the course may have the same database design. For example, even if two students have a hockey database, the databases must have different data and structures.
Your database must be error-free. Note that if you set up an event, or a view and then delete the table(s) associated with that event or view, that event or view will have errors. Make sure you double check everything for correctness by the due date.