Gudleik Rasch wrote:
I've been struggling with the same issue a few times, and the solution
that worked for me was to use a different mysql driver: ruby-mysql
# in config/environment.rb:
# or in Gemfile:
The encoding must also be set in config/database.yml:
First of all thanks but I tried what you said and well...
gem install ruby-mysql
config/environment.rb: added config.gem 'ruby-mysql'
config/database.yml: added adapter: mysql, encoding: utf8
But when I start the server I get following error:
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
Gem::Dependency#version_requirements is deprecated and will be removed
on or after August 2010. Use #requirement
no such file to load -- ruby-mysql
`require'Missing these required gems:
ruby 184.108.40.2068 at D:/ruby19/bin/ruby.exe
rubygems at D:/ruby19/lib/ruby/gems/1.9.1
Run `rake gems:install` to install the missing gems.
I of course tried rake gems:install but it didn't help. I also tried to
just uninstall the mysql gem but that didn't work either. Any idea?