2009/9/6 player123 <[email protected]>:
>
> hi. im new to rails. how do i set mysql to be my default database?
> when i open the .yml file its always set to sqllite. im following this
> book called 'railsspace' and it says i should use mysql but i cant
> because its been giving me problems. thanks!

To make a rails app defaulting to mysql use
rails -d mysql yourappname

But if you did not do this all you have to do is change it in database.yml.

There is no need to use mysql if you don't want to.  You can use
sqlite or postgresql instead.

Have you seen the rails guides at
http://guides.rubyonrails.org/getting_started.html?  The getting
started guide covers this and is a good intro for beginners.  Also the
other guides and the railscasts are very good.

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to