Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do i configure Ruby on Rails to always use mySQL as the default database?

I am a newbie and i just installed Ruby on Rails and mySQL and by default ROR uses sqlite3, but when I configure the db file to use mysql instead of sqlite3, it gives all sorts of errors.

I tried installing the ruby mySQL gem, but still more errors. Should I just do another clean installation of Ubuntu? I'm currently using ver 10.10.

share|improve this question

you can use -d command line option when creating your app to use mysql instead of sqlite i.e

rails -d mysql myapp

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.