# MySQL Gem

**URL:** <https://www.ruby-forum.com/t/mysql-gem/148492>\
**Category:** Rails\
**Created:** [September 13, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/mysql-gem/148492 "2008-09-13T13:51:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [September 13, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/mysql-gem/148492/1 "2008-09-13T13:51:43Z")

</div>

The RoR app that I have inherited was running without MySQL native  
drivers on Ubuntu. I just installed MySQL gems to get the benifit of  
using Native drivers. However:

1. How do I know that the app has switched to using the native drivers  
instead of the slower ruby drivers.

2. It is an app running Mongrel cluster with a Capistrano deployment  
script. Will this gem take effect without redeploying (i.e.  
restarting)?

Bharat

---

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [September 13, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/mysql-gem/148492/2 "2008-09-13T16:12:41Z")

</div>

On 13 Sep 2008, at 13:51, Bharat R. wrote:

> The RoR app that I have inherited was running without MySQL native  
> drivers on Ubuntu. I just installed MySQL gems to get the benifit of  
> using Native drivers. However:
> 
> 1. How do I know that the app has switched to using the native  
> drivers  
> instead of the slower ruby drivers.

It says so in the log file (or better: it doesn’t warn you about the  
pure ruby one anymore).

> 1. It is an app running Mongrel cluster with a Capistrano deployment  
> script. Will this gem take effect without redeploying (i.e.  
> restarting)?

You’ll need to restart your cluster for it to take effect as far as I  
know.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [September 13, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/mysql-gem/148492/3 "2008-09-13T17:48:42Z")

</div>

Thanks Peter. I restarted the cluster. The speed difference is  
noticable. I have looked at the logfiles and they are clean. No  
mention of mysql gem though.

---

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [September 13, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/mysql-gem/148492/4 "2008-09-13T17:57:36Z")

</div>

On 13 Sep 2008, at 17:48, Bharat R. wrote:

> Thanks Peter. I restarted the cluster. The speed difference is  
> noticable. I have looked at the logfiles and they are clean. No  
> mention of mysql gem though.

That’s what it should be. If you don’t have the native driver  
installed, the logs will say you are running the pure ruby version and  
you’re better off installing the native one. So all should be fine now.

Best regards

Peter De Berdt
