Women in Technology

Hear us Roar



Article:
  Rolling with Ruby on Rails
Subject:   problem with the database
Date:   2006-11-10 04:18:19
From:   vasilanthropos
I have followed succesfully all the steps in your tutorial(except from installing mysql that i had installed) until the creation of cookbook database. First of all, there isn't any test db in mysql. After creating the cookbook database in the database yml file i saw MYSQL(default setup).versions 4.1 and 5 are recommended etc". I edited the file like your example and after that the webserver cannot restart. A small piece of the error message that i get :
Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_
adapters/abstract/connection_specification.rb:194:in `establish_connection': dev
elopment database is not configured (ActiveRecord::AdapterNotSpecified)


Any idea?

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Curt Hibbs photo problem with the database
    2006-11-10 06:10:47  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    There's something wrong with you database.yml file. White space is important in a YAML, so check that as well as look any non-displayable chars that might have crept in.

    Actually, it my be easier to run the "rails" command to create a new, dummy project, copy the database.yml from there, and then *carefully* make your changes to it.