Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Saturday, March 23 2019 @ 10:56 PM UTC

The MySQL "lost connection problem" when using mysql.rb gem

RubyThis problem may have various origins, some related to not using the right libmysql or the correct gcc to build the mysql native adapter.
The source of the problem may also be related to the fact that your MysQL database is using the old password format while the MySQL version being > 4.1.
In that case, mysql.rb assumes your database is using the new password format.
Either you ugrade your database to use the new password format, either you patch mysql.rb to force use the old format:
change the @pre_411 assignment in real_connect to @pre_411 = true (and comment the change !!!)

What's Related

Story Options

The MySQL "lost connection problem" when using mysql.rb gem | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2019 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.07 seconds