MySQL error (undefined method `each) with Rails 2.2.x


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 

 

 

Share