1.本地安装rpm包: yum localinstall https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm 2.安装mysql: yum install mysql-community-server 3.启动: systemctl start mysqld systemctl enable mysqld 好了,完了。就这么简单,剩下的就是自己配置/etc/my.cnf,这个自由发挥