- 最近写了一个数据库备份的脚本,MYSQL输入密码出现警告Warning: Using a password on the command line interface can be insecure.
1.png
- 数据库备份文件生成了的
2.png
- 由于告警信息是标准错误,可以将标准错误的输出信息屏蔽掉。添加
2>/dev/null
- 例如
mysql -ubuyan -p123456789 2>/dev/null
【 mysqldump: [Warning] Using a password on the command line interface can be insecure. 】
完结
随机文章
我还没有做出来文章评论,评论请前往留言信箱