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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Heikki Ylönen (Guest)
on 2006-02-05 14:35
I can use database via script/console. Item.create and Item.find works
When I try to do the same thing on a test page, I get this error

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??
Heikki Ylönen (Guest)
on 2006-02-05 14: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.