I'm having a bit of trouble creating the tables for the knowledge is power example site. I'm using phpMyAdmin 3.3.9.2 in MAMP 1.9.6 on a Mac. MySQL version 5.5.9
First I tried to copy/paste the code from my digital copy of the book, but I got errors. So I decided to work through adding the tables manually and I got stuck. I'm not an expert on database design.
I was doing ok until I got to the users table where it asks for a pass with a type of varbinary(32). I don't seem to have varbinary as an option in my dropdown list.
The only differences I can see between what the book says to create and what I've created is the dabase engine. My install of phpMyAdmin defaults to InnoDB instead of MyISAM and I didn't notice this until after I had started creating tables. Do I need to change to MyISAM to see varbinary, or has varbinary been deprecated in my version of phpmyadmin/mysql? If so, what should I use in it's place for the password?
Also, you show some fields as "PRIMARY KEY" (which I understand), some as "UNIQUE", and others as "KEY" in the book. KEY isn't an option in my list of dropdowns (I have PRIMARY, UNIQUE, INDEX, and FULL TEXT). I assume you're meaning for these keys to be used as foreign keys. If so, do I use INDEX for them? Again, I'm not an expert on DB design, so thanks in advance for the help!