In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
When is the start_time recorded in the mysql.slow_log table?
Answer: the end time of the statement
Mysql > select now (); select count (distinct url) from test order by url asc, example desc
+-+
| | now () |
+-+
| | 2016-01-18 16:25:19 |
+-+
1 row in set (0.00 sec)
+-+
| | count (distinct url) |
+-+
| | 199 |
+-+
1 row in set (16.15 sec)
Mysql > select * from mysql.slow_log order by start_time desc limit 10\ G
* * 1. Row *
Start_time: 2016-01-18 16:25:35
User_host: root [root] @ localhost []
Query_time: 00:00:16
Lock_time: 00:00:00
Rows_sent: 1
Rows_examined: 824832
Db: test
Last_insert_id: 0
Insert_id: 0
Server_id: 168039296
Sql_text: select count (distinct url) from test order by url asc, example desc
Thread_id: 4
1 row in set (0.00 sec)
Start_time is 16:25:35 minus query_time: 00:00:16 equals 16:25:19
So start_time records the end time of the statement.
What is recorded in the slow_log file is
# Time: 160118 16:25:35
# User@Host: root [root] @ localhost [] Id: 4
# Query_time: 16.152763 Lock_time: 0.000102 Rows_sent: 1 Rows_examined: 824832
SET timestamp=1453105535
Select count (distinct url) from test order by url asc, example desc
The time and timestamp values are the same, and both are the end time of the statement
Reprint please indicate the source QQ 273002188 welcome to learn QQ group 236941212 oracle,mysql,mongo to communicate with each other
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.