Windows "Lost connection to MySQL server during query"


#1

With previous versions of active record (prior to version 1.13.2), one
could simply comment out the “require ‘active_record/vendor/mysql411’”
line in mysql_adapter.rb to fix this problem when you weren’t (and/or
couldn’t) use the native mysql bindings.

However, this line no longer exists, and I’m stuck on getting any sort
of applicatino using plain-jane activerecord to do anything.

Has there been another/different workaround for this after Rails 1.0?

Stack trace is:
2005-12-28 12:55:11 FATAL – Got error Mysql::Error: Lost connection to
MySQL server during query: SHOW FIELDS FROM :
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in
log' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:180:inexecute’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:278:in
columns' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:734:incolumns’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:746:in
column_names' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:909:ingenerate_schema_abbreviations’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:848:in
find_with_associations' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:infind’


#2

http://pomozov.info/opensource.php#mysql_ruby