How can I change from ruby/mysql to mysql/ruby module? [Broken PIPE problem..]

Due to the random broken pipe error in rails, (probably due to timed
out mysql connection) I am trying to use Mysql/ruby (which was coded
with C) instead of ruby/mysql (which was coded in Ruby).

Ruby/Mysql → Ruby/MySQL

Mysql/Ruby → MySQL/Ruby

Related Article about Broken pipe problem →
http://gaveen.owain.org/2008/04/errnoepipe-broken-pipe-mysql-error-in.html

I am using Ubuntu 10.04, and I have successfully installed Mysql/
Ruby…but then now what? How can I complete the installing process?

  1. I was not able to remove Ruby/Mysql which is previously installed,
    because I do not know how to. How can I remove this module?

  2. What do I have to do so that Mysql/Ruby module actually runs in my
    application?

The line

/usr/bin/install -c -m 0755 mysql.so /usr/local/rvm/rubies/
ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/x86_64-linux

is the result line after I finish installing Mysql/Ruby with ‘make
install’ command in Linux.