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)
rails mysql
我们从来只做一件事,分享.
让美在这个世界流转
让倍感无趣的 受伤的 彷徨的 孤独的 或是心情忧郁的 人生黯淡的人们
能有一次机会
去再一次发现这个世界的美
并把美传递给他人
---光影人像(Follow WeChat public number with interest)
相关文章推荐
- 浅谈功能测试各阶段的作用 [ 光影人像 东海陈光剑 的博客 ]
- 转换思维看问题 [ 光影人像 东海陈光剑 的博客 ]
- 学习笔记之JUnit学习总结 [ 光影人像 东海陈光剑 的博客 ]
- 临时需求如何安排发布? [ 光影人像 东海陈光剑 的博客 ]
- 一则三个和尚的故事 [ 光影人像 东海陈光剑 的博客 ]
- 我所认为的配置管理 [ 光影人像 东海陈光剑 的博客 ]
- apache对应svn的消息摘要密码生成机制 [ 光影人像 东海陈光剑 的博客 ]
- 做出自己的特色 [ 光影人像 东海陈光剑 的博客 ]
- 淘宝的测试 [ 光影人像 东海陈光剑 的博客 ]
- 论测试工程师的责任心 [ 光影人像 东海陈光剑 的博客 ]
- 如何更好地服务用户? [ 光影人像 东海陈光剑 的博客 ]
- 牛径哲学 [ 光影人像 东海陈光剑 的博客 ]
- 同事经历的Nokia面试 [ 光影人像 东海陈光剑 的博客 ]
- 事件vs预防(一) [ 光影人像 东海陈光剑 的博客 ]
- 为什么要在性能测试中设置考虑时间(Thinking Time) [ 光影人像 东海陈光剑 的博客 ]
- 关于提高配置管理工作的可操作性的想法 [ 光影人像 东海陈光剑 的博客 ]
- outlook express --email&address失而复得 [ 光影人像 东海陈光剑 的博客 ]
- 性能测试与数据的关系 [ 光影人像 东海陈光剑 的博客 ]
- 学习笔记之Java Annotation学习总结 [ 光影人像 东海陈光剑 的博客 ]
- 考虑时间(Thinking Time)的计算方法 [ 光影人像 东海陈光剑 的博客 ]