MySQL Forums
Forum List  »  General

table slow_log not have the slow sql statement
Posted by: wang yiran
Date: November 04, 2015 03:04AM

i want to use slow_query_log

and in my.cnf

[mysqld]
log-bin=mysql-bin
server-id=1
general_log=1
log_output=TABLE
slow_query_log=1
long_query_time=0.5

i select * from slow_log\G
the result is
*************************** 179. row ***************************
start_time: 2015-11-04 16:30:18.633022
user_host: root[root] @ [106.37.195.38]
query_time: 00:00:00.000481
lock_time: 00:00:00.000096
rows_sent: 0
rows_examined: 0
db: verify
last_insert_id: 0
insert_id: 0
server_id: 1
sql_text: SHOW FULL TABLES FROM `verify` LIKE 'PROBABLYNOT'
thread_id: 2
*************************** 180. row ***************************
start_time: 2015-11-04 16:30:27.690759
user_host: root[root] @ localhost []
query_time: 00:00:00.001296
lock_time: 00:00:00.000150
rows_sent: 1
rows_examined: 507
db:
last_insert_id: 0
insert_id: 0
server_id: 1
sql_text: SHOW VARIABLES LIKE 'pid_file'
thread_id: 21
180 rows in set (0.00 sec)

but i don't know what sql is slow.how to get it?

Options: ReplyQuote


Subject
Written By
Posted
table slow_log not have the slow sql statement
November 04, 2015 03:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.