mysql-connectors-community/x86_64 MySQL Connectors Community 206 mysql-tools-community/x86_64 MySQL Tools Community 94 mysql80-community/x86_64 MySQL 8.0 Community Server 367
mysql-cluster-7.5-community/x86_64 MySQL Cluster 7.5 Community 禁用 mysql-cluster-7.5-community-source MySQL Cluster 7.5 Community - S 禁用 mysql-cluster-7.6-community/x86_64 MySQL Cluster 7.6 Community 禁用 mysql-cluster-7.6-community-source MySQL Cluster 7.6 Community - S 禁用 mysql-cluster-8.0-community/x86_64 MySQL Cluster 8.0 Community 禁用 mysql-cluster-8.0-community-source MySQL Cluster 8.0 Community - S 禁用 mysql-connectors-community/x86_64 MySQL Connectors Community 启用: 206 mysql-connectors-community-source MySQL Connectors Community - So 禁用 mysql-tools-community/x86_64 MySQL Tools Community 启用: 94 mysql-tools-community-source MySQL Tools Community - Source 禁用 mysql-tools-preview/x86_64 MySQL Tools Preview 禁用 mysql-tools-preview-source MySQL Tools Preview - Source 禁用 mysql55-community/x86_64 MySQL 5.5 Community Server 禁用 mysql55-community-source MySQL 5.5 Community Server - So 禁用 mysql56-community/x86_64 MySQL 5.6 Community Server 禁用 mysql56-community-source MySQL 5.6 Community Server - So 禁用 mysql57-community/x86_64 MySQL 5.7 Community Server 禁用 mysql57-community-source MySQL 5.7 Community Server - So 禁用 mysql80-community/x86_64 MySQL 8.0 Community Server 启用: 367 mysql80-community-source MySQL 8.0 Community Server - So 禁用
8. 使用指定版本MySQL
假如我想使用MySQL5.7,那么我就需要先关闭MySQL8.0 关闭MySQL8.0
1
yum-config-manager --disable mysql80-community
开启MySQL5.7
1
yum-config-manager --enable mysql57-community
9. 查看当前启用的MySQL版本
1
yum repolist enabled | grep mysql
1 2 3
mysql-connectors-community/x86_64 MySQL Connectors Community 206 mysql-tools-community/x86_64 MySQL Tools Community 94 mysql57-community/x86_64 MySQL 5.7 Community Server 624