mysql port info

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

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.

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. Veerasundaravel's Ruby on Rails Weblog | Ruby on Rails Weblog for Ebooks, Ruby Tips, Rails Tips and more. @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.

Thanks

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. Veerasundaravel's Ruby on Rails Weblog | Ruby on Rails Weblog for Ebooks, Ruby Tips, Rails Tips and more. @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 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. Veerasundaravel's Ruby on Rails Weblog | Ruby on Rails Weblog for Ebooks, Ruby Tips, Rails Tips and more. @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@marnen.org

I 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.

The database host name is in config/database.yml. Usually it is localhost.

Colin