Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Follow-up: MySQL hostname

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Upon further reflection: the initial hostname of Mysql Tripod is "localhost". In fact I've even tried using db.lycos.co.uk instead and it worked on TripodUK itself but not on other server. Plus I got a message "unknown hostname db.lycos.co.uk" when I use shell command via mysql admin wrapper. It's possible to know the hostname via phpinfo. Or s there any other way to clear my fog?Thank you
 
When you connect on the same server (i.e. localhost) you connect to mysql using a unix socket.

When you do a remote connect you must connect to a unix port. (the default if port 3306).

The port can be (and normally is) disabled, so that you canonly use the service from the hosts own server.

If the port is enabled, you must make a connection like:
mysql_connect("

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top