标签:schema cti sla mysq veth sel 3.5 system relay
https://183.56.162.38/dana/home/index.cgi
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
#log-error = /var/log/mysql/error.log
# By default we only accept connections from localhost
#bind-address = 127.0.0.1
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
server_id=5
binlog-ignore-db=mysql
log-bin=mysql-slave-bin
binlog_cache_size=1M
binlog_format=mixed
expire_logs_days=7
slave_skip_errors=1062
relay_log=mysql-relay-bin
log_slave_updates=1
read_only=1
schema.xml
<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema xmlns:mycat="http://io.mycat/">
<schema name="TESTDB" checkSQLschema="false" sqlMaxLimit="100" dataNode="test"></schema>
<dataNode name="test" dataHost="localhost1" database="quartzdb" />
<dataHost name="localhost1" maxCon="1000" minCon="10" balance="0"
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<!-- can have multi write hosts -->
<writeHost host="hostM1" url="172.17.0.1:3306" user="root"
password="lupeng">
<!-- can have multi read hosts -->
<readHost host="hostS2" url="172.17.0.1:3307" user="root" password="lupeng" />
</writeHost>
</dataHost>
</mycat:schema>
标签:schema cti sla mysq veth sel 3.5 system relay
原文地址:http://www.cnblogs.com/lupeng2010/p/7290829.html