Uninitialized constant Mysql


#1

I’m trying to get RoR working, and followed this tutorial:
http://wiki.rubyonrails.org/rails/pages/Tutorial

however - something’s wrong with the mysql-connection. When i run
“rake” i get this error:

$ ~/rails $ rake (in /var/www/localhost/htdocs/rails) rake aborted! uninitialized constant Mysql ./Rakefile:151

I don’t belive it’s the mysql database since it works fine from
phpmyadmin, i trippl-checked config/database.yml and i’ve created the
necessary databases.

Any idea about what the problem could be?

thanks in advance


#2

Micheal Jackson wrote:

$ ~/rails $ rake (in /var/www/localhost/htdocs/rails) rake aborted! uninitialized constant Mysql ./Rakefile:151

This looks like you need Rails’ MySql plugin.
Gem should be able to get it, but I used YaST (being a SUSEr)

HTH-IEB