1wget http://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
2yum localinstall mysql80-community-release-el7-1.noarch.rpm
3yum install mysql-community-server
4sudo grep 'temporary password' /var/log/mysqld.log
5sudo grep 'temporary password' /var/log/mysqld.log
6sudo service mysqld start
##查看默认密码
shell> sudo grep 'temporary password' /var/log/mysqld.log
##使用默认密码登陆
shell> mysql -uroot -p
#MySQL8.0修改密码需要有大小写字母、数字、特殊字符组合
mysql> alter user 'test'@'%' identified with mysql_native_password by 'MyNewPass4!';
然后阿里云开发端口ok