共计 492 个字符,预计需要花费 2 分钟才能阅读完成。
1. 下载 mysql 的 yum 源
https://dev.mysql.com/downloads/repo/yum/
2. 装置 yum 源
shell> sudo yum localinstall platform-and-version-specific-package-name.rpm
3. 抉择 mysql 版本
shell> yum repolist all | grep mysql
shell> sudo yum-config-manager --disable mysql56-community
shell> sudo yum-config-manager --disable mysql80-community
shell> sudo yum-config-manager --enable mysql57-community
4. 查看 mysql 版本是否正确
shell> yum repolist enabled | grep mysql
5. 装置 mysql
shell> sudo yum install mysql-community-server
6. 启动 mysql
shell> sudo service mysqld start
Starting mysqld:[OK]
正文完