windows下配置mycat,实现mysql数据库的读写分离!

下载Windows的安装包

https://github.com/MyCATApache/Mycat-download/tree/master/1.4-RELEASE下的





配置环境变量:




修改配置文件



wrapper.conf



Server.xml



[html]  view plain   copy
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <!-- - - Licensed under the Apache License, Version 2.0 (the "License");   
  3.     - you may not use this file except in compliance with the License. - You   
  4.     may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0   
  5.     - - Unless required by applicable law or agreed to in writing, software -   
  6.     distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT   
  7.     WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the   
  8.     License for the specific language governing permissions and - limitations   
  9.     under the License. -->  
  10. <!DOCTYPE mycat:server SYSTEM "server.dtd">  
  11. <mycat:server xmlns:mycat="http://org.opencloudb/">  
  12.     <system>  
  13.     <property name="defaultSqlParser">druidparser</property>  
  14.       <!--  <property name="useCompression">1</property>--> <!--1为开启mysql压缩协议-->  
  15.     <!-- <property name="processorBufferChunk">40960</property> -->  
  16.     <!--   
  17.     <property name="processors">1</property>   
  18.     <property name="processorExecutor">32</property>   
  19.      -->  
  20.         <!--默认是65535 64K 用于sql解析时最大文本长度 -->  
  21.         <!--<property name="maxStringLiteralLength">65535</property>-->  
  22.         <!--<property name="sequnceHandlerType">0</property>-->  
  23.         <!--<property name="backSocketNoDelay">1</property>-->  
  24.         <!--<property name="frontSocketNoDelay">1</property>-->  
  25.         <!--<property name="processorExecutor">16</property>-->  
  26.         <!--   
  27.             <property name="mutiNodeLimitType">1</property> 0:开启小数量级(默认) ;1:开启亿级数据排序  
  28.             
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值