# How-to verify rails is using mysql gem instead of whatever "-d mysql" provides

**URL:** <https://www.ruby-forum.com/t/how-to-verify-rails-is-using-mysql-gem-instead-of-whatever-d-mysql-provides/157871>\
**Category:** Rails\
**Created:** [January 16, 2009, 5:56am UTC](https://www.ruby-forum.com/t/how-to-verify-rails-is-using-mysql-gem-instead-of-whatever-d-mysql-provides/157871 "2009-01-16T05:56:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 16, 2009, 5:56am UTC](https://www.ruby-forum.com/t/how-to-verify-rails-is-using-mysql-gem-instead-of-whatever-d-mysql-provides/157871/1 "2009-01-16T05:56:27Z")

</div>

How does one verify that a Rails project is using the mysql gem (which  
I assume is  
faster) instead of whatever “-d mysql” provides ?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 16, 2009, 7:01am UTC](https://www.ruby-forum.com/t/how-to-verify-rails-is-using-mysql-gem-instead-of-whatever-d-mysql-provides/157871/2 "2009-01-16T07:01:20Z")

</div>

Answered my own question, but in case anyone is curious:

- renaming /usr/lib/libmysqlclient.so.15.0.0 to anything else causes  
script/console to complain like so:

> > Budgie.find(:all)

!!! The bundled mysql.rb driver has been removed from Rails 2.2.  
Please install the mysql gem and try again: gem install mysql.  
LoadError: libmysqlclient.so.15: cannot open shared object file: No  
such file or directory - /usr/lib/ruby/1.8/i486-linux/mysql.so  
from /usr/lib/ruby/1.8/i486-linux/mysql.so  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:153:in`require’

peace
