时间:2021-07-01 10:21:17 帮助过:4人阅读
mysql -uroot -p$i -e "set global validate_password_length=6;" -b --connect-expired-password
mysql -uroot -p$i -e "ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘abc123‘;" -b --connect-expired-password
/usr/bin/mysqladmin -u root -p$i password ‘abc123‘ -b --connect-expired-password
mysql -uroot -p"abc123" -e "show databases;"
echo "mysql is install ok"
done
service mysqld restart
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
service iptables save
/etc/init.d/iptables restart
本文出自 “Linux修仙之路” 博客,转载请与作者联系!
centos 6.5 一分钟安装mysql
标签:linux mysql mysql