# Using wamp's mysql for Ruby on Rails

**URL:** <https://www.ruby-forum.com/t/using-wamps-mysql-for-ruby-on-rails/189567>\
**Category:** Rails\
**Created:** [June 3, 2010, 9:51am UTC](https://www.ruby-forum.com/t/using-wamps-mysql-for-ruby-on-rails/189567 "2010-06-03T09:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![binghai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@binghai](https://www.ruby-forum.com/u/binghai)\
**Post date:** [June 3, 2010, 9:51am UTC](https://www.ruby-forum.com/t/using-wamps-mysql-for-ruby-on-rails/189567/1 "2010-06-03T09:51:57Z")

</div>

Hi all,

I am new to ROR. I have wamp all ready to go, I’d like to use its  
mysql for ROR so that I can access the database from phpmyadmin.  
How should I do that?

Here is what I have in database.yml:

development:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: my\_database  
pool: 5  
username: root  
password:  
host: localhost  
port: 3306  
socket: /tmp/mysql.sock

When I run rake db:create, I get:  
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!

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![binghai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@binghai](https://www.ruby-forum.com/u/binghai)\
**Post date:** [June 3, 2010, 9:56am UTC](https://www.ruby-forum.com/t/using-wamps-mysql-for-ruby-on-rails/189567/2 "2010-06-03T09:56:38Z")

</div>

On 3 June 2010 08:24, binghai [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> encoding: utf8  
> 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!

So what happened when you tried to install the mysql gem as suggested?  
If on Ubuntu or similar it should actually be sudo gem install mysql.

Colin

---

<div class="post-metadata">

**Author:** ![binghai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@binghai](https://www.ruby-forum.com/u/binghai)\
**Post date:** [June 3, 2010, 10:10am UTC](https://www.ruby-forum.com/t/using-wamps-mysql-for-ruby-on-rails/189567/3 "2010-06-03T10:10:06Z")

</div>

After installing: gem install mysql,  
I try to run rake db:create again.  
I get:

: [BUG] Segmentation fault ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
## – control frame ---------- c:0001 p:0000 s:0002 b:0002 l:001664 d:001664 TOP

– Ruby level backtrace  
information-----------------------------------------

[NOTE]  
You may encounter a bug of Ruby interpreter. Bug reports are welcome.  
For details: [http://www.ruby-lang.org/bugreport.html](http://www.ruby-lang.org/bugreport.html)

This application has requested the Runtime to terminate it in an  
unusual way.  
Please contact the application’s support team for more information.

Apparently the interpreter crashes…\>\_\<
