Wondering if it is possible to include the host name in the PHP connect string?
Using telnet at a DOS command prompt, I log into Apache. I then log into MySQL using:
Ex 1:
mysql -u username -h db-mysql -p
When connecting to MySQL in a PHP script I use:
Ex 2:
mysql_connect("webstart.site.ca", "username", "password") or exit();
mysql_select_db("username")
There is no place in the mysql_connect funtion in Ex 2 to write the mysql host (db-mysql). Should this matter?
The mysql host (db-mysql) is different from the host in the URI (webstart). Is this allowed?
Jim