# if set log_sql(on|off) off,the sql log will not output log_sql: on
# only log the query that take more than slow_log_time ms #slow_log_time : 100
# the path of blacklist sql file # all these sqls in the file will been forbidden by kingshard #blacklist_sql_file: /Users/flike/blacklist
# only allow this ip list ip to connect kingshard #allow_ips: 127.0.0.1
# the charset of kingshard, if you don"t set this item # the default charset of kingshard is utf8. #proxy_charset: gbk
# node is an agenda for real remote mysql server. nodes : - name : node1
# default max conns for mysql server max_conns_limit : 32
# all mysql in a node must have the same user and password user : root password : 6lapp
# master represents a real mysql master server master : 192.168.1.231:3306
# slave represents a real mysql salve server,and the number after "@" is # read load weight of this slave. slave : 192.168.1.188:3306 down_after_noalive : 32 - name : node2
# default max conns for mysql server max_conns_limit : 32
# all mysql in a node must have the same user and password user : root password : 6lapp
# master represents a real mysql master server master : 192.168.1.189:3306
# slave represents a real mysql salve server slave : 192.168.1.181:3306
# down mysql after N seconds noalive # 0 will no down down_after_noalive: 32
# schema defines sharding rules, the db is the sharding table database. schema : db : 6l_wangfan nodes: [node1] default: node1 shard: - table: ll_wf_user_info key: user_id nodes: [node1] type: hash locations: [6]