Wednesday, 25 July 2018

MySQL: Create FEDERATED Table using CREATE SERVER

In the previous list of articles, I demonstrated FEDERATED storage engine to perform cross-server queries between MySQL Servers.
In this post, I am showing to create the Connection Server and use that Server detail with multiple FEDERATED Table of MySQL.
Without a Connection server, we need to write the connection string in every FEDERATED table so when we have a multiple FEDERATED table and which are using same remote connection information, create Connection Server once and use with all tables.
Below is a small demonstration.
First Create a Server:
Now use this server information to create Remote FEDERATED Table:

0 comments:

Post a Comment