Get the App
SLTechnology News&Howtos  ›  Database  › 

What are the restrictions on the use of oak-online-alter-table and pt-online-schema-change in mysql

Shulou Source: shulou.com Published: 2022-05-31 15:35:31 10月01日 Update

Editor to share with you what are the restrictions on the use of oak-online-alter-table and pt-online-schema-change in mysql, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's learn about it!

Oak-online-alter-table

Usage restrictions:

The table contains at least one unique index with a single column

A unique index that shares a single column between the modified table and the source table

Cannot have a 'AFTER' trigger on a table (because the tool creates an AFTER trigger during execution)

There cannot be foreign keys on the table

The table name does not exceed 57 characters

Pt-online-schema-change

Usage restrictions:

The table must have a primary key or unique foreign key

The tool does not support renaming columns

There cannot be foreign key references on the table

Cannot have trigger on the table

These are all the contents of the article "what are the restrictions on the use of oak-online-alter-table and pt-online-schema-change in mysql". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Restrictions articles content tools indexes triggers weight not much between uniqueness most characters more knowledge industry information information channels processes channels Zhongchuang Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux Apple NVidia OPPO Reno