MySQL工作台查询历史记录(最后执行的查询/查询),即创建/更改表,选择,插入更新查询 [英] MySql workbench query history ( last executed query / queries ) i.e. create / alter table, select, insert update queries

查看:886
本文介绍了MySQL工作台查询历史记录(最后执行的查询/查询),即创建/更改表,选择,插入更新查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想要查看MySql Workbench中最后执行的查询是否为

Want to see last executed queries in MySql Workbench whether its

创建/更改表查询

create / alter table query

选择/插入/更新查询 或任何查询列表.

select / insert / update query or any query list.

简而言之,想查看所有查询的历史记录

in short want to see history of all queries

推荐答案

从底部面板中,将动作输出"更改为历史记录",然后选择适当的日期.

From the bottom panel, change "Action Output" to "History" and then choose the appropriate date.

或者,SQL语句历史记录存储在文本文件中的以下两个位置:

Alternatively, the SQL statement history is stored in text files under two locations:

  • sql_history/yyyy-mm-dd 例如sql_history/2015-04-01:所有MySQL连接的完整Workbench SQL历史记录
  • log/sql_actions _ .log *:SQL历史记录执行结果,但没有数据,并且按MySQL连接分开
  • sql_history/yyyy-mm-dd e.g., sql_history/2015-04-01: Full Workbench SQL history for all MySQL connections
  • log/sql_actions_.log*: SQL history execution results, but without the data, and separated per MySQL connection

这些文件的位置取决于您的系统.有关更多详细信息,请参见 MySQL Workbench设置和日志文件

The location of these files depends on your system. For additional details, see MySQL Workbench Settings and Log Files

在两种情况下,您都会看到查询历史记录.

In both cases, you will see the query history.

这篇关于MySQL工作台查询历史记录(最后执行的查询/查询),即创建/更改表,选择,插入更新查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆