SQL Error

D

donny24

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'
 
R

Rick DeNatale

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/rubyonrails-talk
 
R

Robert Klemme

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top