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

bash

  1. rake aborted! 
  2.  
  3. 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

bash

  1. rake aborted! 
  2.  
  3. C:/Program Files/MySQL/MySQL Server 5.0/bin/libmysql.dll
  4.  
  5. to this directory:
  6.  
  7. C:/Ruby/bin/libmysql.dll 

 

 

Share