Forum: Ruby on Rails Database works with console, fails otherwise

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8b777217583ebf095420de3364236ccb?d=identicon&s=25 Heikki Ylönen (Guest)
on 2006-02-05 13:35
I can use database via script/console. Item.create and Item.find works
ok.
When I try to do the same thing on a test page, I get this error
message:

Mysql::Error: Lost connection to MySQL server during query: SELECT *
FROM items  LIMIT 1

I suppose they both use the same settings, so what could be the reason
for this behaviour??
8b777217583ebf095420de3364236ccb?d=identicon&s=25 Heikki Ylönen (Guest)
on 2006-02-05 13:51
Got it working. Something needed updating and I didn't get clear answer
what that was.
This topic is locked and can not be replied to.