In your Gemfile place:
gem 'mysql'
In your database.yml file make sure you've changed mysql2 to mysql.
====
Make sure that you are using the correct version of mysql and the
correct dll based on 32 bit or 64 bit. Currently, 64 bit has numerous
issues and you should just install the 32 bit version of mysql and use
the 32 bit version of dll.
Place libmySQL.dll in the ruby\bin directory and make sure the bin
directory is listed in your windows path.
Run bundle install.
====
Make sure your mysql path is set appropriately in windows environment.
If installing the 32-bit version, it should automatically setup the
correct path for you. However, if you manually configured everything
you may be missing the correct path to your installation.
PATH should include: C:\Program Files\MySQL\MySQL Server 5.1\bin;
Go to irb and type require 'mysql'
=> true
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment