Forum: Ruby SQL Error

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.
C2039a07d052bfa20bf79356a6ed8ace?d=identicon&s=25 donny24 (Guest)
on 2007-03-25 21:31
(Received via mailing list)
All,



I am getting an error when viewing localhost development of my Ruby
app. Has anyone seen anything similar to that below?



ActiveRecord::StatementInvalid in Admin/authorController#new
Mysql::Error: Lost connection to MySQL server during query: SHOW
FIELDS FROM authors
RAILS_ROOT: ./script/../config/..

Application Trace | Framework Trace | Full Trace

C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/
active_record/connection_adapters/abstract_adapter.rb:120:in `log'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/
active_record/connection_adapters/mysql_adapter.rb:184:in `execute'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/
active_record/connection_adapters/mysql_adapter.rb:292:in `columns'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/
active_record/base.rb:696:in `columns'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/
active_record/base.rb:1969:in `attributes_from_column_definition'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/
active_record/base.rb:1351:in `initialize_without_callbacks'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/
active_record/callbacks.rb:236:in `initialize'
#{RAILS_ROOT}/app/controllers/admin/author_controller.rb:4:in `new'
#{RAILS_ROOT}/app/controllers/admin/author_controller.rb:4:in `new'
8f6f95c4bd64d5f10dfddfdcd03c19d6?d=identicon&s=25 Rick Denatale (rdenatale)
on 2007-03-27 17:36
(Received via mailing list)
On 3/25/07, donny24 <keith@millimart.com> wrote:
> Mysql::Error: Lost connection to MySQL server during query: SHOW
> FIELDS FROM authors
> RAILS_ROOT: ./script/../config/..
>

This is a rails question rather than a pure ruby one.

You're probably more likely to get an answer in a rails related group:

http://groups.google.com/group/rubyonrails-talk


--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/
E0d864d9677f3c1482a20152b7cac0e2?d=identicon&s=25 Robert Klemme (Guest)
on 2007-03-27 17:46
(Received via mailing list)
On 27.03.2007 17:35, Rick DeNatale wrote:
>> ActiveRecord::StatementInvalid in Admin/authorController#new
>> Mysql::Error: Lost connection to MySQL server during query: SHOW
>> FIELDS FROM authors
>> RAILS_ROOT: ./script/../config/..
>>
>
> This is a rails question rather than a pure ruby one.
>
> You're probably more likely to get an answer in a rails related group:

I'm not sure.  Maybe also a MySQL related group.  It appears that the DB
connection was cut off for unknown reasons (timeout? network issues?).
I'd execute the query "SHOW FIELDS FROM authors" via MySQL's client and
see what happens.

Kind regards

  robert
This topic is locked and can not be replied to.