Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using Stage Tracking function to track DDL progress in mysql 5.7,

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the use of Stage Tracking function to track the progress of DDL in mysql 5.7. the content of the article is carefully selected and edited by the author, which has a certain pertinence and is of great significance to everyone's reference. the following is to understand with the author the use of Stage Tracking function to track the progress of DDL in mysql 5.7s.

Mysql 5.7performance_schema provides a progress tracking function, which is not very intuitive, but it is quite good.

This feature is disabled by default and needs to be enabled manually:

1meme update performance_schema.setup_instruments SET ENABLED = 'YES', TIMED =' YES' WHERE NAME = 'stage/sql/altering table'

3. In this way, the opening is successful.

Example:

Check the progress through the following sql:

SELECT EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED, (WORK_COMPLETED/WORK_ESTIMATED) * 100 as COMPLETED FROM performance_schema.events_stages_current

After reading the above about using the Stage Tracking function to track the progress of DDL in mysql 5.7, many readers must have some understanding. If you need more industry knowledge and information, you can continue to follow our industry information section.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report