[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

SQL Error

donny24

3/25/2007 7:27:00 PM

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'

2 Answers

Rick DeNatale

3/27/2007 3:35:00 PM

0

On 3/25/07, donny24 <keith@millimart.com> wrote:
> 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/..
>

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/rubyon...


--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denh...

Robert Klemme

3/27/2007 3:45:00 PM

0

On 27.03.2007 17:35, Rick DeNatale wrote:
> On 3/25/07, donny24 <keith@millimart.com> wrote:
>> 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/..
>>
>
> 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