Mysql database analysis method of slow query

By default, the mysql database does not output the SQL statement log of the slow query. You need to configure it manually

. The way to configure it is to find the my.ini file in the mysql installation directory (window) and

add
slow_query_log = 1
slow_query_log_file = d:/log/mysql/ slow.log
long_query_time = 10

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327041776&siteId=291194637