# Mysql2 Gem Issue

**URL:** <https://www.ruby-forum.com/t/mysql2-gem-issue/194119>\
**Category:** Rails\
**Created:** [August 30, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/mysql2-gem-issue/194119 "2010-08-30T18:24:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Post date:** [August 30, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/mysql2-gem-issue/194119/1 "2010-08-30T18:24:58Z")

</div>

Hi

I am trying to migrate to Rails3 final release. I have the mysql2 -  
0.2.3  
gem installed.  
While installing the gem, i got two weired notices:  
Enclosing class/module ‘mMysql2’ for class Client not known  
Enclosing class/module ‘mMysql2’ for class Result not known

Now on opening up the very first page (default public.html) i am  
getting a _TypeError:  
can’t convert Fixnum into String_  
Looking at the trace ([http://pastie.org/1126756](http://pastie.org/1126756)), it seems to be a  
problem  
with mysql2 gem.

## Any suggestions on what this issue is?

Sahil D.

---

<div class="post-metadata">

**Author:** ![Sahil\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Post date:** [September 25, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/mysql2-gem-issue/194119/2 "2010-09-25T16:31:17Z")

</div>

Sahil D. \<sahil.dave19@…\> writes:

> HiI am trying to migrate to Rails3 final release. I have the mysql2 - 0.2.3  
> gem installed.While installing the gem, i got two weired  
> notices:Enclosing  
> class/module ‘mMysql2’ for class Client not known  
> Enclosing class/module ‘mMysql2’ for class Result not knownNow on opening up  
> the very first page (default public.html) i am getting a TypeError:  
> can’t  
> convert Fixnum into StringLooking at the trace  
> ([http://pastie.org/1126756](http://pastie.org/1126756)), it  
> seems to be a problem with mysql2 gem.Any suggestions on what this issue  
> is?–  
> Sahil D.

Has there been any response to this? I am getting the same error  
Mac OS 10.6.4  
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.3.0]  
rails 3.0.0

Enclosing class/module ‘mMysql2’ for class Client not known

Enclosing class/module ‘mMysql2’ for class Result not known

Any ideas on where to go from here?
