Trejkaz Xx wrote: > Hao Zhao wrote: >> 1. download older MySQL client library, for example one from >> InstantRails: >> http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll >> >> 2. copy the downloaded file to C:\Ruby\bin (or wherever you installed >> Ruby) >> >> 3. restart MySQL server > > I did steps 1 and 2 (I don't run the server on localhost so step 3 > appears to be pointless for me.) > > I then got an error like: Access Denied: C:/Ruby/bin/......./mysql.so > > Turns out when the mysql gem installed, it didn't set mysql.so to be > executable. I went into Explorer and manually turned it on, and it > started to work. Explorer was showing the read permission but not the > execute permission. Goes to show that this flag does take effect in > Windows after all. :rollseyes: > > I'm just documenting this in case someone else finds their way here and > has the same issue. > > TX
Actually, after your prompt to drop the lib in the %RUBY_HOME%\bin I tried the one that is in the %MYSQL_HOME%\bin i.e. not the one downloaded from InstantRails and it now works (well it seems to, no probs yet). So this clearly indicates that Ruby really can't see libmySQL.dll on the path i.e. as installed with MySQL itself (5.1 for me). So for now simply try cp %MYSQL_HOME%\bin\libmySQL.dll %RUBY_HOME%\bin. Cheers -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---