<mycat:schema xmlns:mycat="http://io.mycat/"> <schema name="TESTDB" checkSQLschema="false" sqlMaxLimit="100" dataNode="dn1"> </schema> <dataNode name="dn1" dataHost="10.1.0.18" database="db1" /> <dataHost name="10.1.0.18" maxCon="1000" minCon="10" balance="1" writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100"> <heartbeat>select user()</heartbeat> <writeHost host="host1" url="10.1.0.18:3306" user="admin" password="123456@Root"> <readHost host="host2" url="10.1.0.18:3307" user="admin" password="123456@Root" /> </writeHost> </dataHost> </mycat:schema>
|