当前位置:网站首页>使用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数据



总结
边栏推荐
- 中国十大券商有哪些?手机开户安全么?
- UWA上新|真人真机测试新增海外机型专区
- web技术分享| 【高德地图】实现自定义的轨迹回放
- 技术创造价值,手把手教你薅羊毛篇
- Why does the pointer not change the corresponding value as a formal parameter
- 新派科技美学、原生物联网操作系统重塑全屋智能
- Flush recommended? Is it safe to open a mobile account?
- 实现常用C语言字符串处理函数
- Force buckle 1319 Number of connected network operations
- Android security / reverse interview questions
猜你喜欢

Economic common sense

Android security / reverse interview questions

最简单DIY基于STM32F407探索者开发板的MPU6050陀螺仪姿态控制舵机程序

“互联网+”大赛命题火热对接中 | 一图读懂百度38道命题

TTY drive frame

JVM easy start-02

新派科技美学、原生物联网操作系统重塑全屋智能

Over a year, time has changed. Chinese chips have made breakthroughs, but American chips are difficult to sell

Win10 无线网络,系统搜索不到WLAN的,解决办法 (以及 VMnet1,8)

The simplest DIY serial port Bluetooth hardware implementation scheme
随机推荐
Design and implementation of distribution network and Internet connection scheme for esp32-cam high cost performance temperature and humidity monitoring system
Noi OJ 1.3 05: floating point numeric C language for calculating fractions
UWA上新|真人真机测试新增海外机型专区
程序中创建一个子进程,然后父子进程各自独自运行,父进程在标准输入设备上读入小写字母,写入管道。子进程从管道读取字符并转化为大写字母。读到x结束
如何用 Redis 实现一个分布式锁
JVM easy start-02
今天14:00 | 12位一作华人学者开启 ICLR 2022
只出现一次的数字<难度系数>&& 杨辉三角<难度系数>
Simplest DIY remote control computer system based on STM32 ① (capacitive touch + key control)
Analysis of LinkedList source code
韦东山设备信息查询例程学习
Install the typescript environment and enable vscode to automatically monitor the compiled TS file as a JS file
Not satisfied with the effect of the smart park? Please accept this secret script of thingjs
Deep dive kotlin synergy (XIV): problems of shared state
MySQL-02. Understanding of indexes at work
PHP reflection class use
塔米狗 | 投资人类型分析以及企业投资类型分析
TTY驱动框架
"Internet +" contest topic hot docking | I figure to understand 38 propositions of Baidu
Unity technical manual - shape sub module - Sprite, spriterenderer and velocity over lifetime