mysql - Join operation for two different database tables on different server -
is there way use join operation 2 tables different databases?
both databases on different server.
if both databases mysql, federated engine provides functionality join mysql databases in different servers. , read limitations too.
wikipedia: mysql federated storage engine mysql relational database management system storage engine allows user create table local representation of foreign (remote) table. utilizes mysql client library api data transport, treating remote data source same way other storage engines treat local data sources whether myd files (myisam), memory (cluster, heap), or tablespace (innodb). each federated table defined there 1 .frm (data definition file containing information such url of data source). actual data can exist on local or remote mysql instance.
to create federated table, 1 has specify url in "connection" string:
create table t1 ( int, b varchar(32)) engine=federated connection='mysql://user@hostname/test/t1'
the connection url in format of:
scheme://user:pass@host:port/schema/tablename
Comments
Post a Comment