1 2 3 4 5 6 7 8 9 10 11 12 | < system > < property name = "defaultSqlParser" >druidparser</ property > </ system > < user name = "mycat" > < property name = "password" >mycat</ property > < property name = "schemas" >test_schema</ property > </ user > </ mycat:server > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < schema name = "test_schema" checkSQLschema = "false" sqlMaxLimit = "100" dataNode = "dn1" ></ schema > < dataNode name = "dn1" dataHost = "testhost" database = "test_mycat" /> < dataHost name = "testhost" maxCon = "1000" minCon = "10" balance = "1" dbType = "mysql" dbDriver = "native" slaveThreshold = "100" > < heartbeat >select user()</ heartbeat > <!-- can have multi write hosts --> < writeHost host = "hostM1" url = "192.168.17.135:3306" user = "root" password = "root" > <!-- can have multi read hosts --> < readHost host = "hostS2" url = "192.168.17.134:3306" user = "root" password = "root" /> </ writeHost > </ dataHost > </ mycat:schema > |