当前位置:网站首页>Mycat的使用
Mycat的使用
2022-06-12 09:08:00 【较真的菜鸟】
定义:一个数据库中间件
作用
- 读写分离
- 分库分表:分库将一个库分为多个库,分表是将数据量大的表分为多个表
- 多数据源的整合
原理
Mycat的原理中最重要的一个动词是“拦截”,它拦截了用户发送过来的SQL语句,首先对SQL做了一些特定的分析:如分片分析、路由分析、读写分离分析、缓存分析等,然后将此SQL发往后端的真实数据库,并将返回的结果做适当的处理,最终返回给用户。
安装
安装方式
- rpm方式:需要.rpm安装包,需要按顺序安装
- yum方式:需要联网
- 解压后即可使用
- 解压后编译安装
下载安包
地址:https://github.com/MyCATApache/Mycat-download
尝试用浏览器下载不了,需要把下载地址复制到迅雷才可以下载
安装命令
- 解压:
tar -zxvf Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz - 将解压后的拷贝到
/usr/local/目录下:cp -r mycat /usr/local/
conf目录下的配置文件
- schema.xml:定义逻辑库,表、分片节点等内容
- rule.xml:定义分片规则
- server.xml:定义用户以及系统相关变量,如端口等
边栏推荐
- Permission modifiers and code blocks
- Binary tree calculation problem
- Sword finger offer:[day 8 dynamic planning (simple)] --- > frog jumping on steps
- 重启Kubernetes Pod的几种方式
- 更改tabledata列名
- Popular understanding of time domain sampling and frequency domain continuation
- [character set 6] wide string and multi byte character conversion
- node示例后台搭建
- [computer use] how to change a computer disk into a mobile disk?
- Flink CheckPoint : Exceeded checkpoint tolerable failure threshold
猜你喜欢

Distributed transaction solution 2: message queue to achieve final consistency

Summary of common character sets

Construction of memcached cache service under Linux:

2022 simulated examination platform operation of high voltage electrician work license question bank

MySQL learning record - II. MySQL create table command

90%以上软件公司都会问的软件测试面试题赶紧来背吧

Filters and listeners

Detailed explanation of iSCSI (V) -- actual operation of iSCSI client configuration
![[untitled] task3 multiple recall](/img/84/81ada5dd7afac62c31a52e743547e9.png)
[untitled] task3 multiple recall

Use NVM to dynamically adjust the nodejs version to solve the problem that the project cannot be run and packaged because the node version is too high or too low
随机推荐
top命令含义
软件测试需求分析方法有哪些,一起来看看吧
Description of string
Construction of memcached cache service under Linux:
Unittest test framework
Full arrangement of numbers (digital password dictionary)
Introduction Fibonacci series
(十三)文本渲染Text
Chapter IV - first procedure
Machine learning notes - circular neural network memo list
[computer use] how to change a computer disk into a mobile disk?
测试用例和bug描述规范参考
ABC253F Operations on a Matrix
Chapter 3 registers (memory access)
[character set 9] will GBK be garbled when copied to unicode?
POI library update excel picture
consul 配置相关
++ problems in C language
解压缩zip文件的工具类
2024. 考试的最大困扰度-滑动窗口