thanks to all the suggestions and the link to the older libmysql.dll. I placed it in my ruby/bin and migration succeeded.
I had mysql 5.1.32-community ruby 1.8.6 rails 2.2.2 on windows xp and was getting this error using rake db:migrate --trace rake aborted! undefined method `each' for #<Mysql:0x4873184> I had to drop the preexisting tables and also remove the create_[table] rb files generated initially. I'm following the tutorial at http://www.tutorialspoint.com/ruby-on-rails/ Madhav Ruby wrote: > The last suggestion that recommended downloadling libmysql.dll worked > for me. > Thanks! > > [email protected] wrote: >> The problem is that libmysql.dll shipped with Mysql doesn't play well >> with ruby 2.2.. >> >> The solution is to download the libmysql.dll from: >> >> http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll >> >> and save this in your ruby bin directory >> >> see also: >> http://forums.aptana.com/viewtopic.php?f=20&t=7563&p=27407&hilit=libmysql.dll#p27407 >> >> >> >> On Dec 1 2008, 5:22�am, David Franklin <rails-mailing-l...@andreas- -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

