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

Sed intercepts slow query logs within a specified period of time

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Using sed to intercept a specified period of time

Use UNIX_TIMESTAMP in mysql to convert start and stop times to utc times

2018-03-04 16:45:00 1520153100

2018-03-04 17:10:00 1520154600

Note that the next two 00s need to be discarded here, otherwise the relevant data may be matched back.

Sed-n'/ 15201531... sed-n'/ 15201531... Charger 15201546... Charpy p db-slow.log > 0304 million 1640-1710.sql

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