码迷,mamicode.com
首页 > 数据库 > 详细

mysql

时间:2017-08-05 18:57:36      阅读:171      评论:0      收藏:0      [点我收藏+]

标签: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>

mysql

标签:schema   cti   sla   mysq   veth   sel   3.5   system   relay   

原文地址:http://www.cnblogs.com/lupeng2010/p/7290829.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!