Mycat is a good thing for database read-write separation and sub-database sub-table
Experimental architecture: see the attachment for the experimental script [ 20161112mycat.rar ]
1) Download the Mycat-Server1.6 version of the program and set the MYCAT_HOME path parameter.
2) Configure the schema.xml file
3) Database table building operation, connect to the logical database TESTDB, the port is DEFAULT_PORT = 8066;
4) Experimental verification stage
Step 1: Verify DB1
Step 2: Verify DB2
Step 3: Verify DB3
Step 4: Verify Mycat Logic Library
Common mistakes:
1) The entity table does not exist, only in the logical database