当前位置:网站首页>MySQL partition table transformation
MySQL partition table transformation
2022-07-28 04:31:00 【The other party has a virus】
Someone has done mysql Partition transformation of ordinary tables , There are hundreds of watches G, Is there any good way to reduce downtime
Other answers 1:
1、 Create a new table with the same structure as the original table , New partition
2、 Insert the old table into the new table in 2022.7.21 00:00:00 Previous data
3、 Table switching is performed during the idle period of business
4、 Index new tables 、 The trigger etc.
5、 Data supplement ( Put more than... In the original table 2021.7.21 00:00:00 The data of is added to the new table )
Other answers 2:
Use InnoDB The partition table of the engine does not support foreign keys .
stay InnoDB Tables cannot use custom partitions that contain foreign keys ; If foreign keys have been used InnoDB surface , Cannot be partitioned .
InnoDB Table cannot contain a foreign key related to user-defined partition table ; User defined partition is used InnoDB surface , Cannot contain columns related to foreign keys .
边栏推荐
- Kotlin——函数
- About me writing a custom cell
- Go structure
- Idea start project MVN command terminal cannot recognize "MVN" item as cmdlet
- C语言初阶——循环语句(while,for,do while)
- [coding and decoding] Huffman coding and decoding based on Matlab GUI [including Matlab source code 1976]
- How much does it cost to build a self built server for ark survival evolution?
- If mongoose exists, it will be updated; if it does not exist, it will be added
- Null security and exception
- 重要的 SQL Server 函数 - 日期函数
猜你喜欢

重要的 SQL Server 函数 - 数字函数

Pyqt based grouping tool

Idea start project MVN command terminal cannot recognize "MVN" item as cmdlet

Harmony's Application on the shelves reported an error. The solution of "please use the API of the released version to develop the application and apply for listing"

仿真测试断开服务器公网连接

Important SQL server functions - string utilities

Information system project manager (2022) - key content: Project Contract Management (13)

【YOLOv5实战5】基于YOLOv5的交通标志识别系统-YOLOv5整合PyQt5

DNS series (III): how to avoid DNS spoofing

Glusterfs file is not mounted, permission: R-S
随机推荐
transform: failed to synchronize: cudaErrorAssert: device-side assert triggered
Applet form-2
Fearless of side impact damage, Chery arize 8 fully protects the safety of passengers
Work fishing clock simulator wechat applet source code
Blooming old trees -- quickly build a map bed application with imageprocessor
Virtual machine class loading mechanism
could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node
How much does it cost to build a self built server for ark survival evolution?
Bio annotation of emotion analysis aste triples extraction
mysql分区表改造
CMake使用基础汇总
Esp8266 WiFi module and mobile communication
【sylar】框架篇-Chapter14-TcpServer 模块
[record of question brushing] 9. Number of palindromes
The unsatisfied analysis of setup and hold timing is the solution
高数_第4章__曲线积分
Solana's "deceptive behavior": making mobile phones and opening stores
虚拟机类加载机制
功耗:Leakage Power
【sylar】框架篇-Chapter11-Socket 模块