wget https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm
rpm -Uvh mysql80-community-release-el7-2.noarch.rpm
yum repolist all | grep mysql
yum install mysql-community-server
service mysqld start
service mysqld status
开机自启动
systemctl enable mysqld
查看初始密码
cat /var/log/mysqld.log | grep 'A temporary password'
mysql -uroot -p'zQpf,eGqh6l='
修改密码
ALTER user 'root'@'localhost' identified by 'Bugaosuni_01';