扫码关注官方订阅号
shell的历史纪录可以这样删除
$ history -c
mysql的呢?
$ mysql -uroot $ (what?)
还有,shell下选取一条命令可以Ctrl + C取消,mysql控制台就会直接退出,如何达到同样取消的效果?
Ctrl + C
认证高级PHP讲师
请在退出后,删除 ~/.mysql_history ,如果嫌每次都清除太麻烦了,把它链接到 /dev/null ,指令是 ln -s /dev/null ~/.mysql_history
~/.mysql_history
/dev/null
ln -s /dev/null ~/.mysql_history
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
请在退出后,删除
~/.mysql_history,如果嫌每次都清除太麻烦了,把它链接到/dev/null,指令是ln -s /dev/null ~/.mysql_history