当前位置:网站首页>使用Mycat进行MySQL单库分表
使用Mycat进行MySQL单库分表
2022-06-23 11:03:00 【InfoQ】
一、Mycat安装部署
rpm -qa |grep java
rpm -qa |grep jdk
rpm -qa |grep gcjrpm -qa | grep java | xargs rpm -e --nodeps yum list java-1.8*yum install java-1.8.0-openjdk* -yjava -version1.修改server.xml

2.修改schema.xml


二、启动Mycat及连接MySQL
1.进入Mycat包下的bin目录,启动Mycat
./mycat start2.连接MySQL

mysql -utest -ptest -h127.0.0.1 -P8066 -Dzhenxui3.查询Mycat用户

4.查询分表

5.往库中insert数据



总结
边栏推荐
- MySQL-02. Understanding of indexes at work
- 最简单DIY基于STM32的远程控制电脑系统①(电容触摸+按键控制)
- Esp32-cam, esp8266, WiFi, Bluetooth, MCU, hotspot create embedded DNS server
- “互联网+”大赛命题火热对接中 | 一图读懂百度38道命题
- 运行时应用自我保护(RASP):应用安全的自我修养
- 最简单DIY基于51单片机的舵机控制器
- Simplest DIY steel patriot machine gun controller based on Bluetooth, 51 MCU and steering gear
- Simplest DIY remote control computer system based on STM32 ① (capacitive touch + key control)
- ESP32-CAM高性价比温湿度监控系统
- 每日一题day7-1652. 拆炸弹
猜你喜欢

Interview Manual of social recruitment Tencent high P (Senior Product Manager)

ESP32-CAM高性价比温湿度监控系统

"Internet +" contest topic hot docking | I figure to understand 38 propositions of Baidu

Esp32-cam high cost performance temperature and humidity monitoring system

【黄金分割点】与【斐波那契数列】

The simplest DIY actuator controller based on 51 single chip microcomputer

为什么poll/select在open时要使用非阻塞NONBLOCK

Simplest DIY remote control computer system based on STM32 ② (wireless remote control + key control)

Android security / reverse interview questions

详解判断大小端的方法
随机推荐
新派科技美学、原生物联网操作系统重塑全屋智能
DevEco Device Tool 助力OpenHarmony设备开发
Flush recommended? Is it safe to open a mobile account?
Noi OJ 1.3 14: elephant drinking water C language
Is the online security of securities account opening high
Over a year, time has changed. Chinese chips have made breakthroughs, but American chips are difficult to sell
What does NFTs, Web3 and metauniverse mean for digital marketing?
Google Earth Engine(GEE)——GEDI L2A Vector Canopy Top Height (Ver
Groovy之Map操作
Groovy之范围
Which securities company has the lowest Commission for opening a mobile account? Is it safe to open an account online now?
Is it difficult to register stocks and open accounts online? Is it safe to open an account online now?
ESP32-CAM无线监控智能网关的设计与实现
运行时应用自我保护(RASP):应用安全的自我修养
最简单DIY基于C#和51单片机上下位机一体化的PCA9685舵机控制程序
手机开户哪个证券公司佣金最低?现在网上开户安全么?
为什么指针做形参没有改变对应的值
技术创造价值,手把手教你薅羊毛篇
Weidongshan equipment information query routine learning
TTY驱动框架