当前位置:网站首页>mysql分区表改造
mysql分区表改造
2022-07-28 04:25:00 【对方带有病毒】
有人做过mysql的普通表分区改造么,表有几百G,有啥好的办法可以减少停机时间么
其他答案1:
1、创建与原始表一样结构的新表,新分区
2、往新表插入旧表在2022.7.21 00:00:00之前的数据
3、业务空闲时间段进行表切换
4、新表建索引、触发器等
5、数据补录(将原始表中超过2021.7.21 00:00:00的数据补录到新表)
其他答案2:
使用InnoDB引擎的分区表不支持外键。
在InnoDB表不能使用包含有外键的自定义分区;如果已经使用了外键的InnoDB表,则不能被分区。
InnoDB表不能包含一个和用户自定义分区表相关的外键;使用了用户自定义分区的InnoDB表,不能包含和外键相关的列。
边栏推荐
- Program life | test engineers only know a little? Seven shortcuts teach you to learn new technology quickly
- 22 openwrt uses external kernel and kernel_ config
- How much does it cost to build a self built server for ark survival evolution?
- 《Intel Arria 10 Avalon-MM DMA Interface for PCI Express Solutions User Guide》文档学习
- pl/sql之各参数详解(“箱子模型“)
- 高数_第4章__曲线积分
- Kingbasees security guide of Jincang database -- 6.2. Configuration files related to authentication
- [practice] use the web animations API to realize a clock with accurate timing
- H. 265 web player easyplayer realizes webrtc video real-time recording function
- 关系数据库事务中的对象锁定
猜你喜欢

Work fishing clock simulator wechat applet source code
![[day03] process control statement](/img/4d/d66140962b7e121a2fea2c366a972a.png)
[day03] process control statement

H265/HEVC名词解释-- CTU,CTB,CU,CB,TU,PU,TB,PB,LCU,Slice,Tile,Chroma,Luma,I帧,B帧,P帧

H265/hevc noun explanation -- CTU, CTB, Cu, CB, Tu, PU, TB, Pb, LCU, slice, tile, chroma, luma, I frame, B frame, P frame

Full resolution of the use of go native plug-ins

【无标题】

《Intel Arria 10 Avalon-MM DMA Interface for PCI Express Solutions User Guide》文档学习
![[untitled]](/img/e9/4b00244b67af5ddaa3f35baa1ac968.png)
[untitled]

Information system project manager (2022) - key content: information system integrated testing and management, project management maturity model, quantitative project management (21)

Power consumption: leakage power
随机推荐
High number_ Chapter 4__ curvilinear integral
Information system project manager (2022) - key content: Project Risk Management (11)
A little advice for students - how to build their own knowledge system?
Cloud native Devops status survey questionnaire solicitation: kodelurover launched jointly with oschina
C # cross thread refresh foreground UI
High number_ Chapter 4__ Curvilinear integral_ Exercise solution
Kingbasees Security Guide for Jincang database -- 6.1 introduction to strong authentication
Learn regular expressions (regexp)
重要的 SQL Server 函数 - 数字函数
[blood vessel detection] Based on MATLAB mom method, combined with Hessian and curve fitting, blood vessel diameter measurement [including Matlab source code, 1970]
【实战】使用 Web Animations API 实现一个精确计时的时钟
The unsatisfied analysis of setup and hold timing is the solution
DNS series (III): how to avoid DNS spoofing
After login, the upper right corner changes to enter the login status
What to do when encountering slow SQL? (next)
Pyqt based grouping tool
How much does it cost to build a self built server for ark survival evolution?
Information system project manager (2022) - key content: intellectual property rights and standards and specifications (22)
Advanced architects, 16 common principles of microservice design and Governance
[practice] use the web animations API to realize a clock with accurate timing