一、下载安装包
下载地址:MySQL Enterprise Edition Downloads | Oracle
MySQL :: MySQL Community Downloads
安装包:mysql-enterprise-9.1.0_el8_x86_64_bundle.tar
官方 安装文档:MySQL Enterprise Edition Installation Guide
二、安装
tar -xvf mysql-enterprise-9.1.0_el8_x86_64_bundle.tar
安装顺序安装
sudo yum install mysql-commercial-icu-data-files-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-commercial-common-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-commercial-client-plugins-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-commercial-libs-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-commercial-client-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-commercial-backup-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-connector-c++-commercial-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-connector-c++-commercial-jdbc-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-connector-j-commercial-9.1.0-1.1.el8.noarch.rpm -y
sudo yum install mysql-connector-odbc-commercial-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-connector-odbc-commercial-setup-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-router-commercial-9.1.0-1.1.el8.x86_64.rpm -y
sudo yum install mysql-commercial-server-9.1.0-1.1.el8.x86_64.rpm -y
安装完成
启动MySQL服务
systemctl start mysqld
systemctl status mysqld
日志中获取mysql初始密码,进入后修改密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Winner@123456';
jdbc下载地址:MySQL :: MySQL Community Downloads
下载对应版本的jdbc
直接下载
redhat8源问题解决:
Red Hat 8.0 使用yum报错:This system is not registered to Red Hat Subscription Management.-CSDN博客