当前位置:网站首页>Mycat搭建
Mycat搭建
2020-11-08 20:13:00 【凹凸凸】
进入Mycat 官网, 点击

点击

点击下载Linux版本

上传至服务器并解压, tar -zxvf Mycat-server-1.6.7.3-release-20190927161129-linux.tar.gz

进入config目录, 修改配置server.xml配置文件
cd mycat/conf/

vim server.xml 可以修改账户密码, 以及修改为自己需要访问的数据库名

修改schema.xml的配置: vim schema.xml

上图中用到的路由规则,如果对应表的主键不是id,或者不存在该路由规则, 需要在rule.xml进行更改

进入mycat的bin目录下进行启动
// 后台启动
./mycat start
// 控制台启动
./mycat console
版权声明
本文为[凹凸凸]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/2954646/blog/4708323
边栏推荐
- What is forsage Ethereum smart contract? What is the global decline of Ethereum
- Exercise 5
- Simple process of reading pictures by QT program developed by Python
- 微信小程序相关
- Chapter 2 programming exercises
- go语言参数传递到底是传值还是传引用?
- Function classification big PK! How to use sigmoid and softmax respectively?
- 简明 VIM 练级攻略
- C / C + + learning diary: original code, inverse code and complement code
- python开发qt程序读取图片的简单流程
猜你喜欢

Is parameter passing in go language transfer value or reference?

AI perfume is coming. Will you buy it?

使用基于GAN的过采样技术提高非平衡COVID-19死亡率预测的模型准确性

MongoDB增删改查操作

Come and have a look! What is the relationship between AQS and countdownlatch?

AI香水来了,你会买吗?

Mongodb add delete modify query operation

Five phases of API life cycle

Process thread coroutine

CountDownLatch 瞬间炸裂!同基于 AQS,凭什么 CyclicBarrier 可以这么秀?
随机推荐
Select sort
第一部分——第1章概述
When to write disk IO after one byte of write file
How much disk IO does a byte of read file actually take place?
TypeScript(1-2-2)
c++ opencv4.3 sift匹配
寻找性能更优秀的动态 Getter 和 Setter 方案
MongoDB数据库
Flink系列(0)——准备篇(流处理基础)
C/C++知识分享: 函数指针与指针函数,看完这篇你还能不懂?
Brief VIM training strategy
Looking for a small immutable dictionary with better performance
iptables从入门到掌握
第一部分——第2章指针操作
Opencv solves the problem of ippicv download failure_ 2019_ lnx_ intel64_ general_ 20180723.tgz offline Download
Case analysis of entitycore framework
SQL quick query
在Python中创建文字云或标签云
IT行业薪资一直遥遥领先!十年后的程序员,是否还是一个高薪职业?
PAT_ Grade A_ 1056 Mice and Rice