mysql安全相关告警
问题现象:本次在测试使用mysql的过程中发现登陆mysql的时候出现:Warning: Using a password on the command lineinterface can be insecure.的告警信息,由于想将mysql放到linux高可用的ha中,发现每次后台登陆mysql时,导致ha报错并切换;
解决办法:
将后台登陆命令写入shell脚本,并设定固定的返回值,例如:
#!/bin/bash
mysql -uroot -proot123> mysql.out 2>&1 &
exit 1;
页:
[1]