您的位置:首页 > 数据库 > MySQL

install Mysql adapter on Rails 2.2(on Windows) [ 光影人像 东海陈光剑 的博客 ]

2015-01-27 12:46 483 查看
If you upgrade Rails to 2.2.2, you will find that the MYSQL adapter have been removed from the package. So you have to manually install it using command " gem install mysql".  but it is not over for works.  when you are running server and visit the home page, you will get error message on background "The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql."   So surprise !  why ?i search many pages with Google and find  the reason that the rails 2.2.2 is incompatible with mysql 5.x client. here is a solusion.  please followe the following steps to fix it:1.  download older MySQL client library, for example one from InstantRails: http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll2.  copy the downloaded file to C:\Ruby\bin (or wherever you installed Ruby) 3. restart MySQL server that's it.hope it will help you when you occur such problem.

rails mysql

我们从来只做一件事,分享.
让美在这个世界流转
让倍感无趣的 受伤的 彷徨的 孤独的 或是心情忧郁的 人生黯淡的人们
能有一次机会
去再一次发现这个世界的美
并把美传递给他人
---光影人像(Follow WeChat public number with interest)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐