rake aborted! 

undefined method `each' for #<Mysql:0x5cdda84> 

Realized from this post, that downgrading from MySQL 5.1.x to 5.0.x will do the trick.

After downgrading, copy this file

rake aborted! 

C:/Program Files/MySQL/MySQL Server 5.0/bin/libmysql.dll

to this directory:




Tags: ,
2 Responses to “MySQL error (undefined method `each) with Rails 2.2.x”
  1. Robison says:


    Funcionou para mim.


  2. Todd Lea says:

    Thanks for the help. I was banging my head on the wall for the last 3 hours on this. Replaced that dll did the trick.


Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.