I am using Fedora 8 in my system and I have installed ruby, rails and mysql..Can anyone please explain the steps for connecting Ruby on Rails with MySQL. Actually I am getting this problem $rake db.migrate (in /home/niket/depot) rake aborted! Don''t know how to build task ''db.migrate'' (See full trace by running task with --trace) -- Posted via http://www.ruby-forum.com/.
Make sure you use a color, not a period -> rake db:migrate Have you setup your database.yml file to point to a Mysql server? On Jun 19, 5:00 pm, Niketh Kumat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I am using Fedora 8 in my system and I have installed ruby, rails and > mysql..Can anyone please explain the steps for connecting Ruby on Rails > with MySQL. > > Actually I am getting this problem > $rake db.migrate > (in /home/niket/depot) > rake aborted! > Don''t know how to build task ''db.migrate'' > > (See full trace by running task with --trace) > -- > Posted viahttp://www.ruby-forum.com/.
E. Litwin wrote:> Make sure you use a color, not a period -> rake db:migrate > > Have you setup your database.yml file to point to a Mysql server? > > On Jun 19, 5:00�pm, Niketh Kumat <rails-mailing-l...-ARtvInVfO7m5VldFQK4jKA@public.gmane.orgt>May I Know how we setup database.yml. Sir I have used this command to configure database.yml as in this way.. $ vim /configure/database.yml..but i am unable to access the contents of database.yml file. Can u please ezplain the steps how to read the contents of database.yml. and after that create a database Dont mind Sir I am new to Linux and its getting me a bit tough to access the command prompt -- Posted via http://www.ruby-forum.com/.
Assuming you are in the root of your project in a terminal session $ nano config/database.yml Modify this section as necessary development: adapter: mysql database: [enter an existing db name] username: [login] password: [password] host: [server or localhost] Ctrl+o -> Enter to save changes Ctrl+x -> Quit On Jun 19, 5:13 pm, Niketh Kumat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> E. Litwin wrote: > > Make sure you use a color, not a period -> rake db:migrate > > > Have you setup your database.yml file to point to a Mysql server? > > > On Jun 19, 5:00 pm, Niketh Kumat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > May I Know how we setup database.yml. Sir I have used this command to > configure database.yml as in this way.. $ vim > /configure/database.yml..but i am unable to access the contents of > database.yml file. > Can u please ezplain the steps how to read the contents of database.yml. > and after that create a database > > Dont mind Sir I am new to Linux and its getting me a bit tough to access > the command prompt > -- > Posted viahttp://www.ruby-forum.com/.
try rake db:migrate (the colon is important) On Jun 20, 2:00 am, Niketh Kumat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I am using Fedora 8 in my system and I have installed ruby, rails and > mysql..Can anyone please explain the steps for connecting Ruby on Rails > with MySQL. > > Actually I am getting this problem > $rake db.migrate > (in /home/niket/depot) > rake aborted! > Don''t know how to build task ''db.migrate'' > > (See full trace by running task with --trace) > -- > Posted viahttp://www.ruby-forum.com/.
Christoph wrote:> try rake db:migrate (the colon is important) > > On Jun 20, 2:00�am, Niketh Kumat <rails-mailing-l...-ARtvInVfO7m5VldFQK4jKA@public.gmane.orgt>I am unable to get access to that file database.yml even though I tried as $ nano configure/database.yml..just a blank editor is opening. How to know the path where is this file stored -- Posted via http://www.ruby-forum.com/.
On Jun 22, 11:03 pm, Niketh Kumat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Christoph wrote: > > try rake db:migrate (the colon is important) > > > On Jun 20, 2:00 am, Niketh Kumat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > I am unable to get access to that file database.yml even though I tried > as > $ nano configure/database.yml..just a blank editor is opening. > How to know the path where is this file storedjust poke around the filesystem as you would normally (the file is in a folder called config, not configure (and you would of course need to have switched to your application''s directory first)) Fred> > -- > Posted viahttp://www.ruby-forum.com/.
Frederick Cheung wrote:> On Jun 22, 11:03�pm, Niketh Kumat <rails-mailing-l...@andreas-s.net> > wrote: >> Christoph wrote: >> > try rake db:migrate (the colon is important) >> >> > On Jun 20, 2:00 am, Niketh Kumat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> >> >> I am unable to get access to that file database.yml even though I tried >> as >> $ nano configure/database.yml..just a blank editor is opening. >> How to know the path where is this file stored > > just poke around the filesystem as you would normally (the file is in > a folder called config, not configure (and you would of course need to > have switched to your application''s directory first)) > > FredThank U for ur reply Fred.. Can u clear my doubts by chatting with me on gmail. I am new to command prompt and unable to locate the config file. Or either please add my email id: niketh6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- Posted via http://www.ruby-forum.com/.