Using wamp's mysql for Ruby on Rails

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:

  adapter: mysql
  encoding: utf8
  reconnect: false
  database: my_database
  pool: 5
  username: root
  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.

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.


After installing: gem install mysql,
I try to run rake db:create again.
I get:
<main>: [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