25 May 2011, 2:59pm

leave a comment

Mysql::ProtocolError with ruby-mysql

Was getting a “Mysql::ProtocolError” when running the ruby-mysql gem with the 64bit version of MySQL on Mac OS X 10.6.

Stackoverflow said to downgrade the version (done – modified the Gemfile to specify the exact version), but I still had to modify one line of code to get it to work.

The line of code that needed to be removed is this one

To find where that file is on your system, type gem env. In my case it was cd /Library/Ruby/Gems/1.8. Then navigate to the file in question, for me this was vi gems/ruby-mysql-2.9.3/lib/mysql/protocol.rb +666.

The issue for ruby-mysql has been raised here.

Aside: why are there so many mysql<->rails issues? The native gem is a bitch to compile, the ruby one has this issue, and we are using a different gem in development on Mac to production on Linux all to workaround various issues.

*name

*e-mail

web site

leave a comment


 

free winrar download

free winrar download

winrar download free

winrar download free

windows 7 key generator

windows 7 key generator

windows 7 activation crack

windows7 activation crack

free winzip

free winzip

free winrar

free winrar

winzip free download

winzip free download

winrar free download

winrar free download

windows 7 crack

windows 7 crack

winzip free download full version

winzip free download full version

winzip activation code

winzip activation code

windows 7 product key

windows 7 product key
\n