codecamp

Mycat2 配置结构

配置结构

mycat配置文件夹
    + clusters
        - prototype.cluster.json //无集群的时候自动创建
      - c0.cluster.json
                        - c1.cluster.json
        + datasources
          - prototypeDs.datasource.json //无数据源的时候自动创建
          - dr0.datasource.json
          - dw0.datasource.json
        + schemas
          - db1.schema.json
          - mysql.schema.json
        + sequences
          - db1_schema.sequence.json
 -server.json //服务器配置
 -state.json //mycat运行状态,包含集群选举的主节点信息,配置时间戳
Mycat2 服务器 server
Mycat2 Sql兼容性 简介
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }