gpt4 book ai didi

mysql - 如何在 Windows 上运行命令 “mysqladmin flush-logs”

转载 作者:行者123 更新时间:2023-11-30 22:43:27 29 4
gpt4 key购买 nike

我正在为我的 Web 应用程序使用 Windows 服务器。实际上日志文件太重了,我想重置那个文件。我已经启动控制台来刷新 mysql 文档上所写的日志。当我键入此 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

如何刷新日志?

最佳答案

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

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

关于mysql - 如何在 Windows 上运行命令 “mysqladmin flush-logs”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30392335/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com