I have fedora 8 and ruby on rails installed, but i need to use mysql database, not sqlite3. How i can change it to mysql? Can somebody help me? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
You can run rails -d mysql to generate a rails app that uses mysql as its database. See rails -h for more options. Or, you could change the config/database.yml file in your existing rails app to point at mysql if you know what to change. Here''s how a basic one might look: development: adapter: mysql database: blah_development username: root password: test: adapter: mysql database: blah_test username: root password: production: adapter: mysql database: blah_production username: root password: Just change blah to your rails app name. And, you may want to make yours use more secure credentials instead of root and an empty password. ;-) Regards, Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you. It works now. On Jun 24, 2:04 pm, "Craig Demyanovich" <cdemyanov...@gmail.com> wrote:> You can run > > rails -d mysql > > to generate a rails app that uses mysql as its database. See > > rails -h > > for more options. > > Or, you could change the config/database.yml file in your existing > rails app to point at mysql if you know what to change. Here''s how a > basic one might look: > > development: > adapter: mysql > database: blah_development > username: root > password: > > test: > adapter: mysql > database: blah_test > username: root > password: > > production: > adapter: mysql > database: blah_production > username: root > password: > > Just change blah to your rails app name. And, you may want to make > yours use more secure credentials instead of root and an empty > password. ;-) > > Regards, > Craig--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On 25.6.2008, at 11.19, torso wrote:> Thank you. It works now.Just for future reference, you shouldn''t use this list for help requests, this is a list for discussing the development of the framework. Usage questions should be sent to the general Rails mailing list, http://groups.google.com/group/rubyonrails-talk (or the Finnish list, http://groups.google.com/group/finnishrails, which has plenty of people able to help with your problems but not too many questions lately ;-). //jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi
Kiitos neuvosta, en tosiaan tajunnut että oon väärässä gruopissa, mut nyt siirsin sen toisen kysymyksen sinne talk grouppiin.. On Jun 25, 11:28 am, Jarkko Laine <jar...-k1O+Gnc6WpmsTnJN9+BGXg@public.gmane.org> wrote:> On 25.6.2008, at 11.19, torso wrote: > > > Thank you. It works now. > > Just for future reference, you shouldn''t use this list for help > requests, this is a list for discussing the development of the > framework. Usage questions should be sent to the general Rails mailing > list,http://groups.google.com/group/rubyonrails-talk(or the Finnish > list,http://groups.google.com/group/finnishrails, which has plenty of > people able to help with your problems but not too many questions > lately ;-). > > //jarkko > > -- > Jarkko Lainehttp://jlaine.nethttp://dotherightthing.comhttp://www.railsecommerce.comhttp://odesign.fi > > smime.p7s > 3KDownload--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
johnmcauley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jun-25 08:42 UTC
Re: How to use mysql database on ruby
Have said that, here is a great resource for accessing databases through ruby: http://www.troubleshooters.com/codecorn/ruby/database/index.htm On Jun 25, 9:28 am, Jarkko Laine <jar...-k1O+Gnc6WpmsTnJN9+BGXg@public.gmane.org> wrote:> On 25.6.2008, at 11.19, torso wrote: > > > Thank you. It works now. > > Just for future reference, you shouldn''t use this list for help > requests, this is a list for discussing the development of the > framework. Usage questions should be sent to the general Rails mailing > list,http://groups.google.com/group/rubyonrails-talk(or the Finnish > list,http://groups.google.com/group/finnishrails, which has plenty of > people able to help with your problems but not too many questions > lately ;-). > > //jarkko > > -- > Jarkko Lainehttp://jlaine.nethttp://dotherightthing.comhttp://www.railsecommerce.comhttp://odesign.fi > > smime.p7s > 3KDownload--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---