Ruby Gem for mysql 5.5 in windows

大兔子大兔子 提交于 2019-12-23 17:24:32

问题


We are going to use mysql 5.5 in our application for production. I did some online search and it seems that mysql2 0.2.6 is the one for mysql5.5. Is this gem good for windows as well? Any tips on how to install and manage for production?

Thanks.


回答1:


The gems (either mysql or mysql2) provides an version-independent layer to the version of MySQL you are running.

However, if you're using a pre-compiled gem, it will require a version specific MySQL library be installed in your system.

To avoid that, you can use MySQL Connector/C which provides a version-independent way to connect to MySQL.

I've documented how to compile mysql gem against MySQL Connector/C in this blog post:

http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/

mysql2 gem has some issues on Windows so I would recommend you use mysql gem for the time being.

Hope this helps.



来源:https://stackoverflow.com/questions/7897898/ruby-gem-for-mysql-5-5-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!