The current release of Ruby on Rails uses sqlite3 as its default
database.
http://weblog.infoworld.com/tcdaily/archives/2008/01/ruby_on_rails_g.html
How can I set Ruby on Rails to use MySQL? I tried
gem install mysql
but new projects still default to using sqlite3.
Thanks.
Alex
How can I set Ruby on Rails to use MySQL? I tried
gem install mysql
but new projects still default to using sqlite3.
For existing projects you should chage database.yml, for new projects
you can use rails -d mysql project_name
Regards,
Rimantas
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alex Chun wrote:
| The current release of Ruby on Rails uses sqlite3 as its default database.
|
| http://weblog.infoworld.com/tcdaily/archives/2008/01/ruby_on_rails_g.html
|
| How can I set Ruby on Rails to use MySQL? I tried
|
| gem install mysql
|
| but new projects still default to using sqlite3.
-
Rails questions are better asked the Rails community:
Ruby on Rails — Community
-
rails -d mysql, IIRC.
Phillip G.
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com
~ - You know you’ve been hacking too long when…
…your speech is punctuated by finger twitches (or arm-waving)
indicating
braces.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgtxnIACgkQbtAgaoJTgL+xAwCfaxFbIEM1Kv+exDe1dpAwZsy8
kRkAoJfFB01AmVgVaOE0tJs4+1Ld8quj
=I/o5
-----END PGP SIGNATURE-----