【问题标题】:how to run command “mysqladmin flush-logs” on windows如何在 Windows 上运行命令“mysqladmin flush-logs”
【发布时间】:2015-05-22 08:52:25
【问题描述】:

我正在为我的 Web 应用程序使用 Windows 服务器。实际上日志文件太重了,我想重置那个文件。我已启动控制台以刷新 mysql doc 上所写的日志。当我输入这个mysqladmin flush-logs 我收到一个错误:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'mysql
admin flush_logs' at line 1

如何刷新日志?

【问题讨论】:

    标签: mysql command-line


    【解决方案1】:

    您可能需要进行身份验证:

    mysqladmin flush-logs -u[user_name] -p[password]
    

    【讨论】:

      猜你喜欢
      • 2011-12-22
      • 2014-02-26
      • 2013-09-13
      • 2014-01-16
      • 2018-04-07
      • 2020-06-08
      • 1970-01-01
      • 2012-03-21
      • 2018-11-17
      相关资源
      最近更新 更多