Forum: Ruby on Rails error switching to mysql database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1acb27fb6f6e7322ef834fb2ab299b16?d=identicon&s=25 suman gurung (Guest)
on 2008-12-23 23:49
(Received via mailing list)
Hi All,
This is a rather trivial question, but i am sure this works for most
of you but it just doesnot work for me.
I am using Rails 2.2.2 on ubuntu. I created a rails app and i wanted
to change the development database to one in mysql. So i created a
database in mysql and changed the database.yml file to the following,

development:
  adapter: mysql
  encodeing: utf8
  database: jukebox
  username: root
  password:

However, when i start the server, and open the page in the browser i
get the error saying that something is gone wrong and when i look at
the development log file, it has the following entry:
require 'rubygems/gem_runner'
#Gem.manage_gems

I know i can install a new version of the rails app with "rails app -d
mysql" but can someone tell me what i am missing here...

thanks,
suman
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2008-12-24 10:07
(Received via mailing list)
>   encodeing: utf8
you have a typo: "encoding".

but for your log-entry, i have no idea.
1acb27fb6f6e7322ef834fb2ab299b16?d=identicon&s=25 suman gurung (Guest)
on 2008-12-24 23:17
(Received via mailing list)
Oh yeah.. thanks for pointing out...

I apparently had to install mysql as a gem as well after installing in
ubuntu, which solved the problem.
This topic is locked and can not be replied to.