I have two database connected to the same network (but different servers), one in MySql and one in DB2 (AS/400). From a Windows client application i'm developing, i need to connect to tables located on both database, but i want the client to have access only to the MySql server.
I need in MySql to have a "replica" of some table located in the DB2 database, so that mysql act as a "bridge" between client and db2. I'm trying with federated tables but it seemed that it works only between two mysql database. I can access to the db2 database through ODBC driver, if it helps.
To better explain:
Now:
C MySql DB2
L ------ table1
I ------ table2
E table3
N table4
T
I need:
C MySql DB2
L ------ table1
I ------ table2
E ------ table3 ------ table3
N ------ table4 ------ table4
T ^
|___ How?
Referring the schema, everytime time a client try to query 'table3' in MySql, the MySql server should first query DB2 for table3, then return the table to the client. Is it possible with MySql?