# Error running mysql in ror

**URL:** <https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132>\
**Category:** rubyonrails-talk\
**Created:** [March 15, 2010, 5:42am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132 "2010-03-15T05:42:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yudi](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@Yudi](https://discuss.rubyonrails.org/u/Yudi)\
**Post date:** [March 15, 2010, 5:42am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/1 "2010-03-15T05:42:05Z")

</div>

I just upgraded rails 2.3.5 and I got the error when I tried to run my application. Here few information:

- My OS Mac Tiger

- Rails version 2.3.5

- Ruby version ruby 1.8.6

- gem version 1.3.6

- I run command: which rails

- I run command: which ruby

- I run command: which mysql

or

sudo gem install mysql – --with-mysql-config=/usr/local/mysql/bin/mysql\_config

Please help!!!

Yudi

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [March 15, 2010, 9:55am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/2 "2010-03-15T09:55:01Z")

</div>

> I just upgraded rails 2.3.5 and I got the error when I tried to run my application.

What error ?

Fred

---

<div class="post-metadata">

**Author:** ![Yudi](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@Yudi](https://discuss.rubyonrails.org/u/Yudi)\
**Post date:** [March 15, 2010, 10:06am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/3 "2010-03-15T10:06:53Z")

</div>

**from my existing rails application (I created from previous rails 2.0.2), I got this error when I run my application.** NameError: uninitialized constant MysqlCompat::MysqlRes from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/dependencies.rb:440:in `load_missing_constant' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const\_missing’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/mysql\_adapter.rb:9:in `define_all_hashes_method!' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:68:in `mysql\_connection’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:223:in `send' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new\_connection’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:245:in `checkout_new_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:184:in `loop' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout’ from /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:98:in `connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve\_connection’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/connection\_specification.rb:123:in `retrieve_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/base.rb:3113:in `quoted_table_name' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1684:in `construct\_finder\_sql’ from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/base.rb:1548:in `find_every' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:615:in `find’ from (irb):1\>\> **I created a new rails app and run rake db:create, I got this error**

Couldn’t create database for {“socket”=\>“/tmp/mysql.sock”, “reconnect”=\>false, “encoding”=\>“utf8”, “username”=\>“root”, “adapter”=\>“mysql”, “password”=\>nil, “database”=\>“myrail\_development”, “pool”=\>5}, charset: utf8, collation: utf8\_unicode\_ci (if you set the charset manually, make sure you have a matching collation)

Any thought?

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [March 15, 2010, 10:13am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/4 "2010-03-15T10:13:02Z")

</div>

> \*from my existing rails application (I created from previous rails 2.0.2), I got this error when I run my application.\*
> 
> NameError: uninitialized constant MysqlCompat::MysqlRes

That usually means that it couldn't load the mysql C extension. I'd double check that the gem was installed in the right install of ruby (there's another one that is part of Mac OS X itself). Also work opening an irb console and requiring the mysql gem, see if you get a more explicit error message or warning in the console logs.

Fred

---

<div class="post-metadata">

**Author:** ![Yudi](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@Yudi](https://discuss.rubyonrails.org/u/Yudi)\
**Post date:** [March 15, 2010, 10:29am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/5 "2010-03-15T10:29:00Z")

</div>

Ok, used 2 different command: irb and ruby script/console. **I use irb and run this command:** irb(main):001:0\> require ‘mysql’ LoadError: no such file to load – mysql from (irb):1:in `require’ from (irb):1

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [March 15, 2010, 10:40am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/6 "2010-03-15T10:40:58Z")

</div>

You need to require rubygems first (Keep an eye on the system logs (in the console app) while you do this

The main difference between 2.0.2 and 2.3.5 is that 2.3.4 no longer has a fallback version of the mysql driver (written in ruby) - it's likely that your mysql driver has never been properly installed.

Fred

---

<div class="post-metadata">

**Author:** ![Yudi](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@Yudi](https://discuss.rubyonrails.org/u/Yudi)\
**Post date:** [March 15, 2010, 10:56am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/7 "2010-03-15T10:56:18Z")

</div>

Ok, I did require ‘rubygems’ and then require ‘mysql’. They are return true _irb(main):001:0\> require ‘rubygems’ =\> true irb(main):002:0\> require ‘mysql’ =\> true_

Is that mean mysql gem ok? Please be advise.

---

<div class="post-metadata">

**Author:** ![Yudi](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@Yudi](https://discuss.rubyonrails.org/u/Yudi)\
**Post date:** [March 15, 2010, 11:32am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/8 "2010-03-15T11:32:50Z")

</div>

I removed mysql 2.8 gem and reinstall mysql 2.7 with this command: _sudo gem install mysql -v 2.7 --no-rdoc --no-ri mysql – --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/mysql/bin/mysql\_config_

Now, when I run rake db:create, it will give me this error: !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.

rake aborted! Failed to lookup Init function /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle

(See full trace by running task with --trace)

any idea?

Yudi Soesanto

---

<div class="post-metadata">

**Author:** ![Yudi](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@Yudi](https://discuss.rubyonrails.org/u/Yudi)\
**Post date:** [March 15, 2010, 12:00pm UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/9 "2010-03-15T12:00:10Z")

</div>

NameError: uninitialized constant MysqlCompat::MysqlRes

```
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in

```

`load_missing_constant' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const\_missing’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:9:in

```

`define_all_hashes_method!' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:68:in `mysql\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in

```

`send' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in

```

`checkout_new_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in

```

`loop' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout’

```
    from /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in

```

`checkout’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in

```

`connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in

```

`retrieve_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:3113:in

```

`quoted_table_name' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1684:in `construct\_finder\_sql’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1548:in

```

`find_every' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:615:in `find’

```
    from (irb):1>>

```

NameError: uninitialized constant MysqlCompat::MysqlRes

```
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in

```

`load_missing_constant' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const\_missing’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:9:in

```

`define_all_hashes_method!' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:68:in `mysql\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in

```

`send' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in

```

`checkout_new_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in

```

`loop' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout’

```
    from /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in

```

`checkout’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in

```

`connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in

```

`retrieve_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:3113:in

```

`quoted_table_name' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1684:in `construct\_finder\_sql’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1548:in

```

`find_every' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:615:in `find’

```
    from (irb):1>>

```

I have installed current mysql gem 2.8 I tried these combination but I still get the error \*\*\* sudo gem install mysql -v 2.7 --no-rdoc --no-ri mysql – --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/mysql/bin/mysql\_config\*\* macbooks-computer:~/desktop/work/myproject/basketball macbook$ script/console Loading development environment (Rails 2.3.5)

> > Stat.find(:all) \*\* sudo gem install mysql --no-rdoc --no-ri mysql – --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/mysql/bin/mysql\_config\*\* macbooks-computer:~/desktop/work/myproject/basketball macbook$ script/console Loading development environment (Rails 2.3.5) Stat.find(:all) \*\* sudo gem install mysql --no-rdoc --no-ri mysql – --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/mysql/bin/mysql\_config –with-mysql-lib=/usr/local/mysql/bin/mysql\*\*\* macbooks-computer:~/desktop/work/myproject/basketball macbook$ script/console Loading development environment (Rails 2.3.5) Stat.find(:all)

NameError: uninitialized constant MysqlCompat::MysqlRes

```
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in

```

`load\_missing\_constant’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in

```

`const\_missing’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:9:in

```

`define\_all\_hashes\_method!’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:68:in

```

`mysql\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in

```

`send’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in

```

`new\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in

```

`checkout\_new\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in

```

`checkout’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in

```

`loop’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in

```

`checkout’

```
    from /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'

    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in

```

`checkout’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in

```

`connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in

```

`retrieve\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in

```

`retrieve\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in

```

`connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:3113:in

```

`quoted\_table\_name’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1684:in

```

`construct\_finder\_sql’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1548:in

```

`find\_every’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:615:in

```

`find’

```
    from (irb):1>>

```

\*\*\* sudo gem install mysql -v 2.7 --no-rdoc --no-ri mysql – --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/mysql/bin/mysql\_config –with-mysql-lib=/usr/local/mysql/bin/mysql\*\*\*

macbooks-computer:~/desktop/work/myproject/basketball macbook$ script/console Loading development environment (Rails 2.3.5)

> >

Stat.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: Failed to lookup Init function /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle

from /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle

from /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:36:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’ from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/dependencies.rb:521:in `new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’ from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/kernel/requires.rb:7:in `require_library_or_gem' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence\_warnings’ from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/kernel/requires.rb:5:in `require_library_or_gem' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:61:in `mysql\_connection’

```
     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in

```

`send’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in

```

`new_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout\_new\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in

```

`checkout' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in

```

`checkout' from /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in

```

`checkout' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in

```

`retrieve_connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve\_connection’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in

```

`connection' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:3113:in `quoted\_table\_name’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1684:in

```

`construct_finder_sql' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1548:in `find\_every’

```
    from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:615:in

```

`find’ from (irb):1\>\>

\*\* here are my gems:\*\* abstract (1.0.0) actionmailer (2.3.5, 2.0.2, 1.3.3) actionpack (2.3.5, 2.0.2, 1.13.3) actionwebservice (1.2.3) active\_form (0.0.6) activemerchant (1.3.2) activerecord (2.3.5, 2.0.2, 1.15.3) activeresource (2.3.5, 2.0.2) activesupport (2.3.5, 2.0.2, 1.4.2) builder (2.1.2) bundler (0.9.11) camping (1.5.180) capistrano (2.5.14, 2.1.0, 1.4.1) cgi\_multipart\_eof\_fix (2.5.0, 2.2, 2.1) color (1.4.1) contacts (1.0.12, 1.0.11) crack (0.1.6) curb (0.1.4) daemons (1.0.9, 1.0.7, 1.0.6) erubis (2.6.5) facebooker (1.0.64) fastercsv (1.5.0) fastthread (1.0.1, 1.0) gem\_plugin (0.2.3, 0.2.2) gemcutter (0.5.0) git (1.2.5) google-geocode (1.2.1) googlecharts (1.5.1) hashie (0.1.8) highline (1.4.0, 1.2.9) hobo (0.7.5) hobofields (0.7.5) hobosupport (0.7.5) hoe (1.12.2, 1.8.2, 1.8.1, 1.5.0) hpricot (0.8.1) httparty (0.5.2) jeweler (1.4.0) json (1.1.2) json\_pure (1.2.0) linkedin (0.1.7) login\_generator (1.2.2) markaby (0.5) mechanize (0.9.2) metaid (1.0) mime-types (1.15) mini\_magick (1.2.3) mongrel (1.1.3, 1.0.1) mongrel\_cluster (1.0.5, 1.0.2, 0.2.1) mysql (2.8.1) needle (1.3.0) net-scp (1.0.2) net-sftp (2.0.4, 1.1.0) net-ssh (2.0.19, 1.1.2, 1.1.1) net-ssh-gateway (1.0.1) nokogiri (1.4.1, 1.3.0) oauth (0.3.6) pdf-writer (1.1.8) racc (1.4.6) rack (1.0.1) rails (2.3.5, 2.0.2, 1.2.3) railsmachine (1.0.6, 1.0.0, 0.1.2) rake (0.8.7, 0.8.3, 0.8.1, 0.7.3) rake-compiler (0.5.0) rc-rest (2.2.1) RedCloth (4.2.2, 3.0.4) rflickr (2006.02.01) rmagick (1.15.7) roxml (3.1.5) rspec (1.1.11) ruby-debug (0.10.0) ruby-debug-base (0.10.0) ruby-hmac (0.4.0) ruby-ole (1.2.10) ruby-openid (2.0.2, 1.1.4) ruby-yadis (0.3.4) ruby\_parser (2.0.4) rubyforge (2.0.3, 1.0.3, 1.0.1, 0.4.4) rubygems-update (1.3.6) rufus-cloche (0.1.13) rufus-dollar (1.0.2) rufus-json (0.1.0) rufus-lru (1.0.2) rufus-mnemo (1.1.1) rufus-scheduler (2.0.3) rufus-treechecker (1.0.3) ruote (2.1.1) scrubyt (0.4.06) sexp\_processor (3.0.3) sinatra (0.9.4) sources (0.0.1) spreadsheet-excel (0.3.5.1) tenderlove-frex (1.0.1.20090313144615) termios (0.9.4) test-spec (0.10.0) transaction-simple (1.4.0) twitter (0.8.6) tzinfo (0.3.3) validatable (1.6.7) will\_paginate (2.2.2) xml-simple (1.0.11) ym4r (0.6.0) youtube-g (0.4.9.9) ZenTest (4.2.1, 3.9.1)

Do you guys have any suggestion?

Yudi Soesanto

---

<div class="post-metadata">

**Author:** ![Yudi](https://avatars.discourse-cdn.com/v4/letter/y/34f0e0/32.png) [@Yudi](https://discuss.rubyonrails.org/u/Yudi)\
**Post date:** [March 18, 2010, 2:20am UTC](https://discuss.rubyonrails.org/t/error-running-mysql-in-ror/50132/10 "2010-03-18T02:20:28Z")

</div>

My problem is solved.

I reinstall and upgrade mysql and it is working good now.

Yudi Soesanto
