user938363
user938363

Reputation: 10350

Ruby Gem for mysql 5.5 in windows

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.

Upvotes: 3

Views: 2963

Answers (1)

Luis Lavena
Luis Lavena

Reputation: 10378

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.

Upvotes: 1

Related Questions