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:

C:/Ruby/bin/libmysql.dll 

 

 

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

    Obrigado,

    Funcionou para mim.

    [Reply]

  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.

    [Reply]

  3.  
Leave a Reply

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

*