如何发送日志到表,以便我们可以在Workbench中查看它们?

在日志选项卡上显示:

Your current Log Destination is set to FILE. For logs to be viewed within Workbench they must be configured to be sent to TABLE. This option is only available in MySQL version 5.1 and newer. Fore more information read http://dev.mysql.com/doc/refman/5.1/en/logtables.html 

我是MYSQL新手,现在和Workbench一起工作。 我需要查看查询日志。 你可以请让我一步一步清楚如何使日志选项卡显示查询日志?

我build议不要使用表格日志,因为它们对系统性能有着无关紧要的影响。 这是因为MySQL将为每个查询写入日志表,如果数据库比较繁忙,性能将会更高,这与您通常所需的相反。

改为在terminal窗口中读取日志文件应该不会太困难。

如果您真的想使用Workbench,请参阅文档( 更新的链接 ),并尝试关注它,如果您遇到问题,请回来一个特定的问题。