在进行mysql数据库初始化时会一些警告信息,大概意思是:MySQL 7.0版本将弃用log_slow_queries,如下:
需要使用新配置项:
100504 13:47:02 [Warning] The syntax '--log_slow_queries' is deprecated and will be removed in MySQL 7.0. Please use '--slow_query_log'/'--slow_query_log_file' instead.
OK
100504 13:49:55 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
OK
需要使用新配置项:
long_query_time = 5
slow_query_log
slow_query_log_file = /byread/logs/mysql/slow.log
log-queries-not-using-indexes
本文详细介绍了MySQL7.0版本中关于log_slow_queries的弃用情况,并提供了替代配置项long_query_time、slow_query_log和slow_query_log_file的使用方法,帮助开发者顺利过渡。
1万+

被折叠的 条评论
为什么被折叠?



