Topic: MySQL 5.1 and Rails 2.3.8

I'm having problems with the use of MySQL When I run my project the server return me to 500.html page. "We're sorry, But Went something wrong.We've Been notified about this issue and we'll take a look at it shortly."

Okay ... I use Windows 7, Netbeans IDE Ruby 1.9.1, Rails 2.3.8, MySQL 5.1 and Mongrel.

My question is if the MySQL 5.1 is supported, because all settings are made. The path is correct, the service is running, I can access MySQL without problems, oo database.yml is configured correctly. So when I run the project I get the 500.html page.

Reading the log of development is evident the following error: /! \ FAILSAFE /! \ 07/18/2010 12:45:49 -0300
  Status: 500 Internal Server Error
  no such file to load - mysql

Anyone have any solution in mind?

Last edited by bkether (2010-07-18 12:22:43)

Re: MySQL 5.1 and Rails 2.3.8

Error loading gem paths on load path in gem_prelude
can't modify frozen string
<internal:gem_prelude>:69:in `force_encoding'
<internal:gem_prelude>:69:in `set_home'
<internal:gem_prelude>:38:in `dir'
<internal:gem_prelude>:76:in `set_paths'
<internal:gem_prelude>:47:in `path'
<internal:gem_prelude>:286:in `push_all_highest_version_gems_on_load_path'
<internal:gem_prelude>:355:in `<compiled>'
(in C:/Users/Bruno Barros/Documents/NetBeansProjects/RailsApplication1)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql

Re: MySQL 5.1 and Rails 2.3.8

I believe this is a bug in Ruby 1.9.1p429. I posted on the site rubylang as a bug and we'll see the answer. I put the final version. P378 final and worked fine.

Last edited by bkether (2010-07-18 14:25:06)

Re: MySQL 5.1 and Rails 2.3.8

An other problem , Rails don´t work with MySQL 5.1 "libmySQL.dll". So you will go to report an migration error. Create db is ok, but migration not. Put an old libmysql.dll in c:/Ruby191/bin!