当前位置:网站首页>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:定义用户以及系统相关变量,如端口等
边栏推荐
- ++ problems in C language
- ABC253F Operations on a Matrix
- Distributed task scheduling
- Practical SQL statements and execution plan view
- The database doesn't know what went wrong
- Flink传入自定义的参数或配置文件
- 解压缩zip文件的工具类
- Popular understanding of time domain sampling and frequency domain continuation
- Basic knowledge of Linear Algebra -- concepts and relationships of common matrices
- Can you migrate backwards before the first migration in the south- Can you migrate backwards to before the first migration in South?
猜你喜欢

Chapter IV - first procedure
![[untitled] task3 multiple recall](/img/84/81ada5dd7afac62c31a52e743547e9.png)
[untitled] task3 multiple recall

After going to the bathroom, I figured out the ES search server
![[character set 7] what are the wide character codes and multi byte codes of Chinese characters](/img/8c/6d375d90234e6094b6930c2cefefa1.png)
[character set 7] what are the wide character codes and multi byte codes of Chinese characters

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

Definition of polar angle and its code implementation

Description of string

Swagger documentation details

Technology cloud report: how will the industrial Internet rebuild the security boundary in 2022?

【无标题】Task3 多路召回
随机推荐
Full alphabetic arrangement (pure alphabetic password dictionary)
Node sample background setup
node示例后台搭建
(15) Tweenrunner
Definition of polar angle and its code implementation
Chapter 7 - more flexible location of memory addresses
Unittest test framework
day5-x
CodeCraft-22 and Codeforces Round #795 (Div. 2) 题解
测试用例和bug描述规范参考
Consumer configuration related
Source code and scheme for target recognition, detection and 6D attitude estimation (the most advanced method and data set)
Flink CheckPoint : Exceeded checkpoint tolerable failure threshold
剑指 Offer II 016. 不含重复字符的最长子字符串-滑动窗口
On absolute value function in C language
Sword finger offer:[day 9 dynamic planning (medium)] --- > maximum sum of continuous subarrays
L1-019 who goes first
Description of string
List < string > sort
Full arrangement of numbers (digital password dictionary)