安装依赖环境(这些环境可能已经有了,如果没有就需要安装)
yum install perl -y
yum install libaio -y
yum install net-tools -y
yum install numactl -y
搜索mariadb
rpm -qa | grep mariad
卸载mariadb,与mysql有冲突
rpm -e mariadb-libs-1:5.5.60-1.el7_5.x86_64 --nodeps
下载mysql
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.30-1.el7.x86_64.rpm-bundle.tar
解压myqsl
tar -xf mysql-5.7.30-1.el7.x86_64.rpm-bundle.tar
安装mysql
rpm -ivh mysql-community-common-5.7.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.30-1.el7.x86_64.rpm
查看默认密码
cd