source ~/.bashrc
mysql.local -NBe "select user,host from mysql.user order by user,host"|while read line ;do us=`echo $line|awk '{print $1}'`;ip=`echo $line|awk '{print $2}'`;mysql.local -NBe "show grants for -e 's/$/;/g';echo ;done
阅读(1060) | 评论(0) | 转发(0) |