Let's go back to the beginning here..
First, you said you are using redhat and you said you already have mysql
installed and rails installed. In that case you just need to have the
The gem is the hard part, depending on which "ruby" version you are
using. So, try the following first:
sudo gem install mysql
.. if you get failures installing that gem and you are using ruby 1.9.x
sudo gem install hectoregm-mysql-ruby
Once any of those gems installs.. test to make sure it works..
type require 'mysql'
The output should show => True
If you get this far then you just need to create your new project and
specify that you want to use mysql. You can do this a few ways. First
way is if you have a really good IDE (the IDE will do it for you when
you create your project (netbeans for example does this). The second
way is to specify your database in the database.yml file.
Then you need to run a rake DB create task to create the database based
on the specifications of the database.yml file.
rake db:create (which works for the current environment database
.. or ..
rake db:create:all (which creates all databases specified in
Hope that helps.