# Undefined method \`get\_client\_info' for Mysql:Class

**URL:** <https://www.ruby-forum.com/t/undefined-method-get-client-info-for-mysql-class/175313>\
**Category:** Rails\
**Created:** [September 11, 2009, 1:16am UTC](https://www.ruby-forum.com/t/undefined-method-get-client-info-for-mysql-class/175313 "2009-09-11T01:16:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [September 11, 2009, 1:16am UTC](https://www.ruby-forum.com/t/undefined-method-get-client-info-for-mysql-class/175313/1 "2009-09-11T01:16:58Z")

</div>

after upgraded to Snow Leopard… (32bits arch)

I re-installed the mysql gem (i386 architecture) , all gems and  
rails 2.3.4  
testing in the console

$ irb  
irb(main):001:0\> require ‘rubygems’  
=\> true  
irb(main):002:0\> require ‘mysql’  
=\> true

Mysql.get\_client\_info  
NoMethodError: undefined method `get\_client\_info’ for Mysql:Class  
from (irb):3

I should get “5.1.38” (MySQL installed db version…) or did the  
Mysql class changed w Rails 2.3.4 ?  
is this test wrong ?

thanks for your advices

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [September 11, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/undefined-method-get-client-info-for-mysql-class/175313/2 "2009-09-11T17:31:06Z")

</div>

Your test works for me.

But I had a horrible time getting everything working on a Macbook.

I have no idea what finally worked, as I was trying so many different  
things and then walked away whistling when it finally did work.

Did you do an upgrade, or a clean install? I did an upgrade and I  
think that was the source of most of my problems. I also had no issue  
at all with a 64bit iMac.

What finally worked for me:

install mysql-5.1.38-osx10.5-x86\_64 (from [mysql.org](http://mysql.org)). Then install  
the mysql gem with:  
env ARCHFLAGS=“-arch x86\_64” gem install mysql – --with-mysql-  
config=/usr/local/mysql/bin/mysql\_config

Run this ruby script to see what other gems are broken in the 32-\>64  
bit transition: [178178’s gists · GitHub](http://gist.github.com/178178)

There’s some more detail in the following:

> **[Upgrading to Snow Leopard](https://rubyonrails.org/2009/8/30/upgrading-to-snow-leopard)**
>
> Last Friday, Apple released their new OS version: Snow Leopard. Upgrading to SL is very easy and even gives you back quite a lot of HD space.However a few things have changed in the OS and you need to understand what is going on so you won’t get...

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [September 12, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/undefined-method-get-client-info-for-mysql-class/175313/3 "2009-09-12T16:15:27Z")

</div>

I am stupid and bad writer …

Mysql.get\_client\_info  
NoMethodError: undefined method `get\_client\_info’ for Mysql:Class  
from (irb):3

it happens because I wrote the bad method, should have written :

Mysql.get\_client\_info  
=\> “5.1.38”
