Actually, when you call mysql_connect in php, you can specify a server address to connect to, so to answer your question, yes you can.
example:
$link = mysql_connect("datacomp:Port", "user", "password");
If you don't change the default MySQL port the port isn't required in the function call...