开发者社区 问答 正文

mysql5.5无法使用flush logs命令

我以前在mysql5.1.49版本中使用flush logs命令,会自动清空错误日志内容,生成新的空日志文件,原来的日志内容会自动生成xx-old.err
现在换成mysql5.5以后,使用flush logs命令,日志文件内容不自动清空也不自动生成xx-old.err文件,这是为什么呀,请各位知道的解答一下,谢谢。

展开
收起
落地花开啦 2016-02-12 18:11:11 3015 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    Prior to MySQL 5.5.7, if you flush the logs using FLUSH LOGS and mysqld is writing the error log to a file (for example, if it was started with the --log-error option), log file renaming may occur, as described in Section 5.2.2, “The Error Log”.
    FLUSH LOGS 对 err 日志的处理只支持 5.5.7 以及以前的版本。
    5.5.8 以后好像没提及怎么处理

    2019-07-17 18:41:39 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等