MYSQL , 毫秒记录 ,OS:windows 2012, 深度问题
MYSQL , millisecond loging ,OS:windows 2012,deep issue
希望哪位MYSQL大侠能帮帮我..
问题详情:
我想在数据库中将慢速查询记录为 table 而不是运行良好但有一个问题的日志文件,我将日志查询时间设置为 0.05 秒。然后更改仅带来超过该时间但没有毫秒的查询,服务器带来它并像这样记录它 00:00:00 我不能将其用作准确观察查询日志时间的好指标!
然后我做了一件小事虽然可能会解决它但它没有,我更改 query_time 变量在 slow_log table 接受 4 个字符长度服务器接受但没有像这样的任何值:
00:00:00:0000
好像服务器没有记录毫秒,所以把它留空。
请给我建议任何可能有助于解决此问题的修改。
Mysql版本:5.6.21。
OS :Windows 2012 R2
此致
很遗憾,这是 a limit of MySQL:
The slow query log consists of SQL statements that took more than
long_query_time seconds to execute and (as of MySQL 5.1.21) required
at least min_examined_row_limit rows to be examined. The default value
of long_query_time is 10. Beginning with MySQL 5.1.21, the minimum is
0, and the value can be specified to a resolution of microseconds. For
logging to a file, times are written including the microseconds part.
For logging to tables, only integer times are written; the microseconds part is ignored. Prior to MySQL 5.1.21, the minimum
value is 1, and the value for this variable must be an integer.
希望哪位MYSQL大侠能帮帮我..
问题详情:
我想在数据库中将慢速查询记录为 table 而不是运行良好但有一个问题的日志文件,我将日志查询时间设置为 0.05 秒。然后更改仅带来超过该时间但没有毫秒的查询,服务器带来它并像这样记录它 00:00:00 我不能将其用作准确观察查询日志时间的好指标!
然后我做了一件小事虽然可能会解决它但它没有,我更改 query_time 变量在 slow_log table 接受 4 个字符长度服务器接受但没有像这样的任何值:
00:00:00:0000
好像服务器没有记录毫秒,所以把它留空。
请给我建议任何可能有助于解决此问题的修改。 Mysql版本:5.6.21。 OS :Windows 2012 R2
此致
很遗憾,这是 a limit of MySQL:
The slow query log consists of SQL statements that took more than long_query_time seconds to execute and (as of MySQL 5.1.21) required at least min_examined_row_limit rows to be examined. The default value of long_query_time is 10. Beginning with MySQL 5.1.21, the minimum is 0, and the value can be specified to a resolution of microseconds. For logging to a file, times are written including the microseconds part. For logging to tables, only integer times are written; the microseconds part is ignored. Prior to MySQL 5.1.21, the minimum value is 1, and the value for this variable must be an integer.