在Windows 5.5中使用Ruby Gem [英] Ruby Gem for mysql 5.5 in windows

查看:120
本文介绍了在Windows 5.5中使用Ruby Gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将在我们的应用程序中使用mysql 5.5进行生产。我做了一些在线搜索,似乎mysql2 0.2.6是mysql5.5的一个。这款宝石是否适合用于窗户?有关如何安装和管理产品的任何提示?

谢谢。 解决方案

gem(mysql或mysql2)为您正在运行的MySQL版本提供独立于版本的层。

然而,如果您使用pre编译好的gem,它需要在你的系统中安装一个版本特定的MySQL库。

为避免这种情况,你可以使用MySQL Connector / C,它提供了一个独立于版本的连接到MySQL的方式。



我记录了如何在此博客文章中针对MySQL Connector / C编译mysql gem:

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



mysql2 gem在Windows上有一些问题,所以我建议你暂时使用mysql gem。



希望这个h elps。


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.

解决方案

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.

这篇关于在Windows 5.5中使用Ruby Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆