Article:
  Rolling with Ruby on Rails
Subject:   Help me!
Date:   2006-08-21 18:01:40
From:   THKZ
Please me help me.I got that error .
"#42000Unknown database 'cookbook_development'"


I already changed "cookbook_development" to "cookbook" in database.yml. But I'm still having the problem.Is it necessary to change in other files also?


Thanks,
THKZ

Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • change it back
    2007-03-09 04:14:34  ffargus [View]

    I have had the same problem and scoured the msg boards and sites looking for an answer. My onlu solution is to rename you DB cookbook_development - works like a dream now.

    ff
  • Curt Hibbs photo Help me!
    2006-08-21 19:48:58  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    After you changed database.yml to just say "cookbook", did you shutdown and restart the web server? Is it now saying "unknown database cookbook", or does it still say "unknown database cookbook_development"?

    You could try using Instant Rails which comes with a working version of the cookbook app preinstalled (that way you could compare what you've got against something that works):

    http://instantrails.rubyforge.org/

    Also, there is a modified version of Rolling with Ruby on Rails that has been made specific to Instant Rails... you could try working through that:

    http://instantrails.rubyforge.org/wiki/wiki.pl?Rolling_With_Ruby_On_Instant_Rails_Tutorial
    • Help me!
      2006-08-22 21:52:24  THKZ [View]

      It works now. I forgot to restart the web server. Thanks for letting me know the modified version of Rolling with Ruby on Rails and for your help.I'm gonna try that modified version. I would like to ask you one more question. Is it suitable to use Instant Rails for development? Which one do you prefer,One-click Ruby installer or Instant Rails? Because it is said Instant Rails is a one-stop Rails runtime solution.I'm not sure if it is different like JRE and JDK.
      • Curt Hibbs photo Help me!
        2006-08-23 05:58:42  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

        The Ruby runtime in Instant Rails *is* the one-click installer (I'm the maintainer of both projects). The onlt difference is that since Instant Rails does not modify your system in any way (no registry entries, no environment settings), you don't get the nice start menu entries that you get with the OCI.

        I use Instant Rails for all of my Rails development work.
  • Help me!
    2006-08-21 18:04:35  THKZ [View]

    I'm using the Ruby 184-20 and Mysql 5.0