Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.