To get the store (chpt. 6) up and running with Rails 2.x, you need to do the following:
Don't create the sql databases as instructed, instead change to your rubydev directoy (or wherever you are storing your rails projects) and type:
change to the store directory (eg with cd store)
ruby script/generate scaffold Item name:string description:text price:float
Then edit the config/database.yml file, adding your sql password where appropriate.
Then back to the console and type:
You have created a model called "Item", a database table in store_development called "items" and a controller called "ItemController"
You can add records to the database under the url:
The rest should be straight forward.
Hope this helps somebody.
P.S. Running Rails 2.x, MySQL version 5.x and Ubuntu Linux