After you install Ruby and build the Rails framework,
you need to create the mysql
gem. This blog post
shows you how to create the mysql
gem and how to
write a simple Ruby program that queries the MySQL database.
The first step creates the mysql
gem for Ruby
programming:
yum install mysql |
It should show you the following:
Fetching: mysql-2.9.1.gem (100%) Building native extensions. This could take a while... Successfully installed mysql-2.9.1 Parsing documentation for mysql-2.9.1 Installing ri documentation for mysql-2.9.1 Done installing documentation for mysql after 0 seconds 1 gem installed |
After you install the mysql
Ruby Gem, you can write …