Centos7,安装MYSQL8,也可以安装MYSQL9,不过要选择对下载的MYSQL版本 cat /etc/os-release 如果机器曾经安装过mysql 这个问题是因为mariadb被安装的原因,要卸载掉,下面的命令查询安装的mysql历史版本和残留文件。 rpm -qa | grep -E 'mysql|mariadb' 查到的东西挨个卸载掉 rpm -e mariadb-libs-5.5.68-1.el7.x86_64 一、打开下载地址 https://dev.mysql.com/downloads/ 二、选择MySQL Community Downloads centos 下载redhat的那个版本根据服务器架构选择X86 下载 mysql-9.0.1-1.el9.x86_64.rpm-bundle.tar 要这个带bundle的版本,否则缺一堆文件 解压缩 tar -xvf mysql-9.0.1-1.el9.x86_64.rpm-bundle.tar mysql-community-client-9.0.1-1.el7.x86_64.rpm mysql-community-client-plugins-9.0.1-1.el7.x86_64.rpm mysql-community-common-9.0.1-1.el7.x86_64.rpm mysql-community-debuginfo-9.0.1-1.el7.x86_64.rpm mysql-community-devel-9.0.1-1.el7.x86_64.rpm mysql-community-embedded-compat-9.0.1-1.el7.x86_64.rpm mysql-community-icu-data-files-9.0.1-1.el7.x86_64.rpm mysql-community-libs-9.0.1-1.el7.x86_64.rpm mysql-community-libs-compat-9.0.1-1.el7.x86_64.rpm mysql-community-server-9.0.1-1.el7.x86_64.rpm mysql-community-server-debug-9.0.1-1.el7.x86_64.rpm …
Continue reading →