I want to create an API for my web application so i need access on mysql. for that I need following info... database host-name and that I am unable to get... Thanks -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Awijeet Mr. wrote:> I want to create an API for my web application so i need access on > mysql. > for that I need following info... > > database host-name and that I am unable to get... > > > Thanksyou can simply use localhost as your host-name. And if you have login-details to ur mysql server means, create a DB and use it. -- Regards, T.Veerasundaravel. http://tinyurl.com/25vma7h @veerasundaravel -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Veera Sundaravel wrote:> Awijeet Mr. wrote: >> I want to create an API for my web application so i need access on >> mysql. >> for that I need following info... >> >> database host-name and that I am unable to get... >> >> >> Thanks > > you can simply use localhost as your host-name. And if you have > login-details to ur mysql server means, create a DB and use it. > > > > -- > Regards, > > T.Veerasundaravel. > http://tinyurl.com/25vma7h > @veerasundaravelThanks Veerasundaravel, but the thing is that the application has been deployed already, and I have to create an API of it for i-pad. For that I will be using Php as I am php developer so I need host name, to get connected with db, can you tell me the name of file where i can get this info, even at server (EY) I am unable to get the mysql host name. Thanks -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Awijeet Mr. wrote:> Veera Sundaravel wrote: >> Awijeet Mr. wrote: >>> I want to create an API for my web application so i need access on >>> mysql. >>> for that I need following info... >>> >>> database host-name and that I am unable to get... >>> >>> >>> Thanks >> >> you can simply use localhost as your host-name. And if you have >> login-details to ur mysql server means, create a DB and use it. >> >> >> >> -- >> Regards, >> >> T.Veerasundaravel. >> http://tinyurl.com/25vma7h >> @veerasundaravel > > Thanks Veerasundaravel, but the thing is that the application has been > deployed already, and I have to create an API of it for i-pad. For that > I will be using Php as I am php developer so I need host name, to get > connected with db, can you tell me the name of file where i can get this > info, even at server (EY) I am unable to get the mysql host name. >Ack! No! If the app is in Rails, extend it in Rails to create the API. Don''t write a separate PHP app -- that''s asking for trouble. If the app isn''t in Rails, then why the heck are you posting here?> ThanksBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Marnen Laibow-Koser wrote:> Awijeet Mr. wrote: >> Veera Sundaravel wrote: >>> Awijeet Mr. wrote: >>>> I want to create an API for my web application so i need access on >>>> mysql. >>>> for that I need following info... >>>> >>>> database host-name and that I am unable to get... >>>> >>>> >>>> Thanks >>> >>> you can simply use localhost as your host-name. And if you have >>> login-details to ur mysql server means, create a DB and use it. >>> >>> >>> >>> -- >>> Regards, >>> >>> T.Veerasundaravel. >>> http://tinyurl.com/25vma7h >>> @veerasundaravel >> >> Thanks Veerasundaravel, but the thing is that the application has been >> deployed already, and I have to create an API of it for i-pad. For that >> I will be using Php as I am php developer so I need host name, to get >> connected with db, can you tell me the name of file where i can get this >> info, even at server (EY) I am unable to get the mysql host name. >> > > Ack! No! If the app is in Rails, extend it in Rails to create the API. > Don''t write a separate PHP app -- that''s asking for trouble. > > If the app isn''t in Rails, then why the heck are you posting here? > >> Thanks > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.orgI am not asking questions out from the scope of rails, it''s just i want to know where host info are written into rails setting file,so that I can use it for any specific reason. and it''s not heck.. it can be answered as you know or don''t know? Any where in this post i haven''t asked any thing related to php or i-dev.it''s core rails problem. Thanks Avijit. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
On 22 September 2010 06:05, Awijeet Mr. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I want to create an API for my web application so i need access on > mysql. > for that I need following info... > > database host-name and that I am unable to get...The database host name is in config/database.yml. Usually it is localhost. 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.