Page 1 of 1

How to find Hostname and Port of Mysql

Posted: Sun Jan 04, 2004 6:35 pm
by maboroshi
Hi I am building an application and I need to find the ipaddress and port on which mysql is on my host server

Does anyone know how to do this or is there code that can find this information out

Thanks in advance

Maboroshi

Posted: Sun Jan 04, 2004 10:09 pm
by JAM
Do a whois on your host to get the ip (or if being in a win32 enviroment, try the dos-cmd:
ping http://www.host.com

Port is likely 3306 as default setting.