[typo] Typo does not work any more

Scott Laird scott at sigkill.org
Thu Nov 17 13:39:40 EST 2005


On Nov 17, 2005, at 10:35 AM, Bart Braem wrote:
> ActiveRecord::StatementInvalid: Lost connection to MySQL server during
> query: SELECT * FROM articles
>         from /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/ 
> active_record/connection_adapters/abstract_adapter.rb:67:in
> `log'
>         from /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/ 
> active_record/connection_adapters/mysql_adapter.rb:164:in
> `execute'
>         from /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/ 
> active_record/connection_adapters/mysql_adapter.rb:297:in
> `select'
>         from /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/ 
> active_record/connection_adapters/mysql_adapter.rb:143:in
> `select_all'
>         from /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/ 
> active_record/base.rb:447:in
> `find_by_sql'
>         from /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/ 
> active_record/base.rb:411:in
> `find'
>         from (irb):1
>         from :0
> But my and login work. Strange...

So, either database.yml is broken (double-check that you aren't using  
tabs anywhere in the file) or the Rails-MySQL driver is broken.  Do  
you have any other Rails apps on the box?  Do they still work?

Check in MySQL's logs and see if it's saying anything useful.


Scott


More information about the Typo-list mailing list