MySQL8.0 on RHEL7
用了很久的mysql5.7,终于也要升级到mysql8.0了。升级之后的安装配置步骤有些不同,记录一下 mysql5.7的安装步骤: https://cbzhan.blogspot.com/2018/01/linuxel7-mysql5720-jira738.html mysql8.0的官网安装文档: https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html 1. 首先还是下载yum源: 1) 访问 https://dev.mysql.com/downloads/repo/yum/ ,找到对应的OS和mysql版本的yum源包 2) 下载yum源包: # wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm 3) 安装: # rpm -ivh mysql80-community-release-el7-3.noarch.rpm 4) 确认一下: # yum repolist all | grep mysql 2. 和5.7时一样,卸掉系统自带的mariadb的包 1) 先查询一下: # rpm -qa|grep mariadb mariadb-libs-5.5.64-1.el7.x86_64 2) 卸载: # yum remove mariadb-libs-5.5.64-1.el7.x86_64 3) 再确认一下已经没有了: # rpm -qa|grep mariadb 3. 安装mysql8.0: 1) yum安装: # yum -y install mysql-community-server 2) 确认一下: # rpm -qa | grep mysql mysql-community-common-8.0.17-1.el7.x86_64 mysql-community-server-8.0.17-1.el7.x86_64 mysql80-community-release-el7-3.noarch mysql-community-client-8.0.17-1.el7.x86_64 mysql...