mysql去掉明文密码不安全提示


Warning: Using a password on the command line interface can be insecure.

[yeemiao@yeemiao-oracle-9e96168-prd scripts]$ more /etc/zabbix/scripts/check_user_count.sh
#!/bin/bash
mysql --host=host01 --user=root --port=3306 -ptesttest -D db_test -N<<eof
select max(id) as usercnt from user_info;
exit
eof


#!/bin/bash
/etc/zabbix/scripts/check_user_count.sh 2>/dev/null


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM