Get the App
SLTechnology News&Howtos  ›  Database  › 

How to modify fields online by mysql

Shulou Source: shulou.com Published: 2022-05-31 15:50:23 10月03日 Update

This article mainly introduces mysql how to modify the field online, the article is very detailed, has a certain reference value, interested friends must read it!

You can modify the table structure online by using pt-online-schema-change

Pt-online-schema-change-- user=dba-- password=jsrh2sdshj-- host=192.168.27.21-- alter= "MODIFY COLUMN begin_date timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP" dazzling huisoumt blinds productsale-- execute

Pt-online-schema-change-- user=root-- password=cG3sBD9mazGI-- alter= "MODIFY COLUMN begin_date timestamp NOT NULL DEFAULT''ON UPDATE CURRENT_TIMESTAMP"-- execute Drunhuisou, execute Drunhuisou, tweets, blinds, products, sales

The above is all the content of the article "how to modify fields online by mysql". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Online fields content articles value interests guys buddies more knowledge structure industry information information channels channels references help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Apple Huawei MySQL MariaDB