Database structure


Part I: MySQL tutorial
Part II: PHP tutorial

Start:



Links:
MySQL Manual
PHP Manual
Student Server Home

As a refresher, here's the structure of our database at the end of the first session.

SHOW TABLES;
Tables_in_tutorial
cheese
people
DESCRIBE cheese;
FieldTypeNullKeyDefaultExtra
idint(10) unsignedNOPRI auto_increment
namevarchar(64)NO   
countrychar(2)NO   
DESCRIBE people;
FieldTypeNullKeyDefaultExtra
emailvarchar(64)NOPRI  
namevarchar(128)NO   
dobdateYES   
fave_cheeseint(10) unsignedNO   

There was also some data in the tables. You can download the database dump to create a clone of this database. In a UN*X environment, just save the dump and redirect it into mysql, like so:

shell> mysql -u username -p database < dbdump.sql

Return to tutorial