MySQL Forums
Forum List  »  Ruby

Re: Invalid access to memory location
Posted by: Paul Link
Date: May 28, 2007 05:56PM

I was having the same problem. I think that there is an unfortunate bug in the libmysql.dll in mysql version 5.0.41-community-nt MYSQL Community Edition (GPL).

Please see this bug for more details
"http://bugs.mysql.com/bug.php?id=28358";

I was able to resolve the matter on my computer by copying an earlier version of libmysql.dll (it might be from mysql 5.0.27 but it has a creation date of Oct 22, 2006). I placed the copied libmysql.dll file into the bin directory of my installed mysql server (C:\Program Files\MySQL\MySQL Server 5.0\bin)

I am now able to run the ruby commands to require 'mysql' via irb and to get the version number of the mysql gem that I installed. I used gem install to install the mysql 2.7.3 (mswin32) driver. See this webpage for more details regarding those mysql drivers.

"http://www.vandomburg.net/pages/mysql-ruby-windows";

Hope this helps



Edited 2 time(s). Last edit at 05/28/2007 05:57PM by Paul Link.

Options: ReplyQuote


Subject
Written By
Posted
Re: Invalid access to memory location
May 28, 2007 05:56PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.