[英]MySQL caching results with Workbench
I don't know if it is the database server or the workbench IDE that's caching my results, but I insert data through my application and go to view the result in workbench and there's nothing. 我不知道是数据库服务器还是工作台IDE缓存了我的结果,但是我通过应用程序插入数据,然后在工作台中查看结果,没有任何结果。
I need to restart the server to see "updated" results. 我需要重新启动服务器才能看到“更新的”结果。
I tried using SELECT SQL_NO_CACHE * from my_table
, without success. 我尝试SELECT SQL_NO_CACHE * from my_table
使用SELECT SQL_NO_CACHE * from my_table
,但未成功。
Thanks @scaisEdge and @Mike. 感谢@scaisEdge和@Mike。
Now that you said transactions, I tried to commit Workbench's tab, an voilá... it show me new lines... 既然您说了交易,我尝试提交Workbench的选项卡,这是一个清单...它向我显示了新行...
Altough the documentation says: "COMMIT commits the current transaction, making its changes permanent .", not to view other transaction changes... 整个文档中都说:“ COMMIT提交当前事务, 使其更改永久生效 。”,而不是查看其他事务更改...
Thanks anyway, it's better than restart server :P 无论如何,还是比重启服务器更好:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.