#No.14 ##################################################################################check mysqlusers
mysql -uroot -peoqkr -e "select CONCAT(user,'@',host),password from mysql.user order by user,host;"
#!/bin/bash
echo checking db ....
for ip in `cat ip_db.txt`
do
echo $ip
mysql -h$ip -uroot -pmeiyu#super^^ -e "select CONCAT(user,'@',host),password from mysql.user order by user,host;"
done
阅读(900) | 评论(0) | 转发(0) |