centos7安装mysql8
mysql链接: link
选择合适的操作系统并下载压缩包
bundle本身包含了所有的rpm包。下载这个安装包,
上传压缩包到linux服务器,解压压缩包tar -xvf mysql-8.0.29-1.el7.x86_64.rpm-bundle.tar
卸载系统自带的mariadb
查询 rpm -aq | grep mariadb
卸载 rpm -e --nodeps mariadb-libs
(–nodeps忽略依赖强制卸载)
安装mysql
rpm -ivh mysql-community-common-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-plugins-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-icu-data-files-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.29-1.el7.x86_64.rpm
如果是全部安装
mysql-community-common-8.0.29-1.el7.x86_64.rpm
mysql-community-client-plugins-8.0.29-1.el7.x86_64.rpm
mysql-community-embedded-compat-8.0.29-1.el7.x86_64.rpm
mysql-community-libs-8.0.29-1.el7.x86_64.rpm
mys