一.仓库安装
建立网络源:
vim aliyun.repo
[aliyun-app]
name=aliyun-appsteam
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/AppStream/x86_64/os/
gpgcheck=0
[aliyun-base]
name=aliyun-baseos
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/
gpgcheck=0
查看版本:
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.1 (Plow)
从网络源
[root@localhost ~]# rpm -ivh https://repo.mysql.com//mysql80-community-release-el9-1.noarch.rpm
![](https://i-blog.csdnimg.cn/blog_migrate/f25f873153c11c9af92e2e187c966c7f.png)
[root@localhost ~]# dnf install mysql-server -y
![](https://i-blog.csdnimg.cn/blog_migrate/abf8039bcf33fcb527a28effc3674178.png)
[root@localhost ~]# rpm -qa | grep mysql
mysql80-community-release-el9-1.noarch
mysql-community-common-8.0.32-1.el9.x86_64
mysql-community-client-plugins-8.0.32-1.el9.x86_64
mysql-community-libs-8.0.32-1.el9.x86_64
mysql-community-client-8.0.32-1.el9.x86_64
mysql-community-icu-data-files-8.0.32-1.el9.x86_64
mysql-community-server-8.0.32-1.el9.x86_64
[root@localhost ~]# systemctl start mysqld
[root@localhost ~]# systemctl status mysqld
![](https://i-blog.csdnimg.cn/blog_migrate/50a791cea6f62696a90f9299ec93acb5.png)
[root@localhost ~]# grep 'te