Cross Server, Cross Database connection W/ JOINs

From: Date: Tue, 06 Jan 2004 20:10:37 +0000
Subject: Cross Server, Cross Database connection W/ JOINs
Groups: php.general 
Request: Send a blank email to php-general+get-173899@lists.php.net to get a copy of this message
Does anyone know how, if possible, to connect to two databases on two different network servers so that join queries can be performed (without using temporary tables)? I am using MySQL so mysql_pconnect() or mysql_connect() will insert a default server ('localhost:3306', per the docs) if I do not specify one. Specifying two servers (with the same granted user/pw combo) throws a syntax error. I have tested and searched, but turned up nothing so far. This is an experiment, but I can see where the value would be far ranging for those operating database server farms within their network (data modularization). If you have attempted this sort of (or would like to) thing I'd like to hear your thought, caveats, etc. TIA!

« previous php.general (#173899) next »