【国产化系列】银河麒麟服务器V10SP1+鲲鹏+mysql8+rpm

#下载mysql8 arrch64版本,注意版本
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-8.0.27-1.el8.aarch64.rpm-bundle.tar
#清理旧的
find / -name mysql
rm -rf /var/lib/mysql /var/lib/mysql/mysql /usr/bin/mysql /usr/lib64/mysql /usr/share/mysql /var/log/mysqld.log
rpm -e --nodeps mysql-community-server-8.0.27-1.el8.aarch64

#解压
tar -xvf mysql-8.0.27-1.el8.aarch64.rpm-bundle.tar
#执行安装步骤1:
rpm -ivh mysql-community-common-8.0.27-1.el8.aarch64.rpm --nodeps --force
#执行安装步骤2:
rpm -ivh mysql-community-client-plugins-8.0.27-1.el8.aarch64.rpm  --nodeps --force
#执行安装步骤3:
rpm -ivh mysql-community-libs-8.0.27-1.el8.aarch64.rpm  --nodeps --force
#执行安装步骤4:
rpm -ivh mysql-community-client-8.0.27-1.el8.aarch64.rpm  --nodeps --force
#执行安装步骤5:
rpm -ivh mysql-community-server-8.0.27-1.el8.aarch64.rpm  --nodeps --force

#启动mysql
systemctl  start  mysqld
#在下面这个文件里面找到初始化密

你可能感兴趣的:(服务器,mysql,数据库)