Rails-Mysql driver installation problem? - newbie

I’m a newbie trying to follow the ONLamp RoR tutorial at http://

Originally, I forgot to install the MySQL driver. It took a while to
get a driver installed using gem, but eventually I got mysql-2.7
driver installed after downloading some ruby dev headers and mysql
client library.

Now, when I try and point the browser to controller with
scaffold:<cont_name> I get the following error message:

“RuntimeError in RecipeController#new
Mysql not loaded”

The development.log file reads:
“RuntimeError (Mysql not loaded):
connection_adapters/mysql_adapter.rb:7:in `define_all_hashes_method!’


Sorry if I’m not explaining this well … very new at it. I was able
to successfully connect to the mysql server outside of rails and
create the db & recipe table (per tutorial). Can’t seem to get rails
to connect, though.

Any help would be appreciated.

I’m running on Ubuntu 6.10.

Hi Daniel,

I got the same error and was able to fix it.

I had recently upgraded mysql and that caused the problem. What I had
to do is download a new mysql-ruby driver designed to work with the
version of mysql I was using.

Hopefully this helps!