My environment is Ruby 1.9.2p290 + rails2.3.4 + mysql5.5.15. When I run "DB: migrate", the error message is as follows:
!!! 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!
Rubygem version error: MySQL (2.7.3 not> = 0)
(See full trace by running task with -- Trace)
What is the cause? Follow the prompts to run "Gem install MySQL" and prompt "error: cocould not find a valid gem 'mysql' (> = 0) in any repository"
Solution:
1. Download and install ruby-mysql at http://www.tmtm.org/en/ruby/mysql/
Install
# Ruby./install. Rb (Today I verified it again. The first step is for the solution under Linux, which cannot be executed. Otherwise, problems will occur when connecting to the database, and the database installation will followHttp://www.cnblogs.com/huzhiwei/archive/2012/02/22/2363721.html)
2. Go to http://rubyforge.iasi.roedu.net/gems/download mysql-2.7.3-mswin32.gem
Gem install mysql-2.8.1-x86-mswin32.gem
3. Copy libmysql. dll under the bin directory of MySQL to the bin directory of Ruby. (This does not seem necessary. For details, refer to idea)