Forum: Ruby on Rails Rails-Mysql driver installation problem? - newbie

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2eb8d87ef59f5b94ae52934d50de673a?d=identicon&s=25 Daniel (Guest)
on 2007-02-05 00:53
(Received via mailing list)
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.
D49e8a6c0c80817c34d9a5bc74c72cbc?d=identicon&s=25 Chris (Guest)
on 2007-02-08 02:54
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!

This topic is locked and can not be replied to.