shell脚本批量设置mysql5.7 root密码
#!/bin/bash read -p "Enter mysql password": newpasswd sed -i "s/rocdk890/$newpasswd/g" /etc/init.d/mysqld_multi chmod +x /etc/init...
#!/bin/bash read -p "Enter mysql password": newpasswd sed -i "s/rocdk890/$newpasswd/g" /etc/init.d/mysqld_multi chmod +x /etc/init...
#!/bin/bash file="iplist.txt" for ip in `awk '/^[^#]/{print $1}' $file`; do port=`awk -v I=$ip '{if(I==$1)print $2}' $file` user=`awk -v I=$ip '{if(I==$1)print $3}' $fi...