Forum: Ruby on Rails uninitialized constant Mysql

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.
Micheal Jackson (Guest)
on 2005-12-15 10:58
(Received via mailing list)
I'm trying to get RoR working, and followed this 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

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
IEB (Guest)
on 2006-06-25 13:36
Micheal Jackson wrote:

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

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

This topic is locked and can not be replied to.