MySQL????????????????
???????????? ???????[ 2013/5/7 9:54:00 ] ????????
?????????÷???????? ./mysqldumpslow --help
??????5.1.6?汾???????????????????????????????????????????е??????
????????log_output???????????????????????file???????????????table
????????log_output???????????????????????????????б??
mysql> show variables like 'log_output';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_output | FILE |
+---------------+-------+
1 row in set (0.00 sec)
mysql> set global log_output='TABLE';
Query OK?? 0 rows affected (0.00 sec)
mysql> show variables like 'log_output';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_output | TABLE |
+---------------+-------+
1 row in set (0.00 sec)
mysql> select sleep(15);
+-----------+
| sleep(15) |
+-----------+
| 0 |
+-----------+
1 row in set (15.02 sec)
mysql> select * from mysql.slow_logG;
*************************** 1. row ***************************
start_time: 2013-04-14 01:22:29
user_host: root[root] @ localhost []
query_time: 00:00:15
lock_time: 00:00:00
rows_sent: 1
rows_examined: 0
db: test
last_insert_id: 0
insert_id: 0
server_id: 1
sql_text: select sleep(15)
1 row in set (0.00 sec)
??????????????????????????15????????SQL???????slow_log??
?????????????????????????п????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11