newbie question: I am starting a new application via: $ rails myapp when I startup the webrick server via: $ server/script webrick and then goto http://localhost:3000/ and click on: "About your applications environment" it shows I am using the sqlite3 Databse Adapter. How can I force my default db to be mysql? Thanks Ron --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
your environment/database.yml should look like it : development: adapter: mysql encoding: utf8 database: mydb_development username: my_username password: my_password host: localhost do the same for production et test environements On Jan 24, 3:02 am, jurincie <jurin...-zw+XTJXV56k3uPMLIKxrzw@public.gmane.org> wrote:> newbie question: > > I am starting a new application via: > > $ rails myapp > > when I startup the webrick server via: > > $ server/script webrick > > and then goto http://localhost:3000/and click on: "About your > applications environment" > > it shows I am using the sqlite3 Databse Adapter. > > How can I force my default db to be mysql? > > Thanks > > Ron--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 24 Jan., 03:02, jurincie <jurin...-zw+XTJXV56k3uPMLIKxrzw@public.gmane.org> wrote:> $ rails myappRun... $ rails -d mysql myapp to preconfigure your app with mysql (or any other adapter). ah and btw.. have a look at the other arguments of the rails command too, run `rails --help`. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you...couldn''t find that anywhere! Ron On Jan 23, 10:09 pm, Thomas Maurer <t.mau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 24 Jan., 03:02, jurincie <jurin...-zw+XTJXV56k3uPMLIKxrzw@public.gmane.org> wrote: > > > $ rails myapp > > Run... > > $ rails -d mysql myapp > > to preconfigure your app with mysql (or any other adapter). ah and > btw.. have a look at the other arguments of the rails command too, run > `rails --help`.--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---