MySQL 命令历史
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21523811/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
MySQL commands history
提问by tmarwen
When using mysql
through command line (with default shipped configuration), I was able to get my commands history using up-arrow.
Bu after modifying the server configuration for a remote access and successfully authenticated to, I'm not able to view any command and it feels annoying thinking that I lost all my commands history.
使用mysql
通过命令行时(使用默认发货配置),我能够使用向上箭头获取我的命令历史记录。
但是在修改远程访问的服务器配置并成功通过身份验证后,我无法查看任何命令,并且认为我丢失了所有命令历史记录感觉很烦人。
Is there some location where mysql stores previously used commands?
mysql 是否有存储以前使用过的命令的位置?
BR.
BR。
回答by Abdul Manaf
On Unix, the mysql client logs statements executed interactively to a history file. By default, this file is named .mysql_history
in your home directory.
在 Unix 上,mysql 客户端将交互式执行的语句记录到历史文件中。默认情况下,此文件.mysql_history
在您的主目录中命名。
Please read out MySQL Documentation.
请阅读MySQL 文档。