Archive for the ‘Setting and Installation’ Category

How to fixed Problem on rails 2.2.2 and mysql 5.0.41

This post is describe how fixed the problem:

!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
C:/ruby/ruby-1.8.6/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so: 998: Invalid access to memory location. – C:/ruby/ruby-1.8.6/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin3
2/ext/mysql.so (LoadError)

That is the mysql bug.

Simple Solutions:

  1. Download the libmysql.zip from http://www.dll-files.com/dllindex/dll-files.shtml?libmysql
  2. Unzip libmysql.zip
  3. Copy paste libmysql.dll to “path_of_mysql/bin” Example: C:/xampp/mysql/bin
  4. Copy paste libmysql.dll to “path_of_ruby/bin” Example : C/ruby/bin

Thanks,

Advertisements

Tag Cloud