# How come need to get MySQL to work in a strange way?

**URL:** <https://www.ruby-forum.com/t/how-come-need-to-get-mysql-to-work-in-a-strange-way/189956>\
**Category:** Rails\
**Created:** [June 10, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/how-come-need-to-get-mysql-to-work-in-a-strange-way/189956 "2010-06-10T15:10:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![winterheat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7993a0/32.png) [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Post date:** [June 10, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/how-come-need-to-get-mysql-to-work-in-a-strange-way/189956/1 "2010-06-10T15:10:07Z")

</div>

The following is an error for using RoR with MySQL:

C:\ror\shov17\>rake db:migrate  
(in C:/ror/shov17)  
!!! 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!  
193: %1 is not a valid Win32 application. -  
c:/ruby/lib/ruby/gems/1.8/gems/mys  
ql-2.8.1-x86-mingw32/lib/1.8/mysql\_api.so

(See full trace by running task with --trace)

C:\ror\shov17\>gem update mysql  
Updating installed gems  
Nothing to update

C:\ror\shov17\>gem list mysql

\*\*\* LOCAL GEMS \*\*\*

mysql (2.8.1 x86-mingw32)

==================================================================

searching the net got this page:  
[http://www.ninjacoding.net/archive/2010/01/11/the-bundled-mysql.rb-driver-has-been-removed-from-rails.aspx](http://www.ninjacoding.net/archive/2010/01/11/the-bundled-mysql.rb-driver-has-been-removed-from-rails.aspx)

Quoted:  
After tearing my hair, installing and reinstalling the MySQL 2.8.1 gem  
goggling for answers for an hour I finally found the answer that helped  
me. The in the reply from by Hao Zhao, he pointed out that the 2.2.2  
version of Rails does not support the MySQL 5.x client!

The solution to this is this:

Download an older version of the MySQL client library from  
[http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll](http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll)  
Copy the downloaded file to c:\Your Ruby install folder\bin

Thatâ€™s it! I could go mad right now but Iâ€™m too happy to finally have  
found this.

End of Quote…

How come this is not documented in Rails website or its wiki

[http://wiki.rubyonrails.org/database-support/mysql](http://wiki.rubyonrails.org/database-support/mysql)

I wonder… and it feel a pretty strange way to make something working.
