Hi reddy,
I came across this problem several days ago,I'm using windows
xp ,Here is my solution.
1. edit Gemfile => gem 'mysql2', '0.2.6'
2. download mysql-noinstall-5.1.50-win32.zip at
http://downloads.mysql.com/archives/mysql-5.1/mysql-noinstall-5.1.50-win32.zip
,unzip
3. gem install mysql2 -v 0.2.6 -- --with-mysql-lib=E:\ROR
\mysql-5.1.50-win32\lib --with-mysql-include=E:\ROR\mysql-5.1.50-
win32\include (replace the file "E:\ROR\mysql-5.1.50-win32" path with
yours)
4. this should work now,try bundle install,generate some
model ,and run rake db:migrate to see if it works,make sure your
database config is right,like this
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: depot_development
pool: 5
username: root
password: root
host: localhost
5.if it still not work ,try this =>
https://github.com/brianmario/mysql2/issues/8
Hope this helped
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.