centos 8.2安装mysql8.0+ 由于centos8.0默认安装的就是mysql8.0, 所以安装起来非常简单!
列出支持的数据库: yum repolist all | grep mysql
# 安装 yum install -y mysql-server
# 启动 service mysqld start
# 登录mysql mysql -v
# 授权 create user 'root'@'%' identified by 'root';
grant all privileges on *.* to 'root'@'%'; flush privileges;