centos7卸载mariadb安装mysql

卸载mariadb

1. 当前安装列表

 rpm -qa | grep mariadb

centos7卸载mariadb安装mysql-1

2.卸载

rpm -e –nodeps mariadb-libs-5.5.56-2.el7.x86_64
centos7卸载mariadb安装mysql-2

检查卸载干净没,可以看到已经没有列表了

centos7卸载mariadb安装mysql-3

安装mysql

1.下载mysql的repo源

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
centos7卸载mariadb安装mysql-4

2.安装mysql-community-release-el7-5.noarch.rpm包

sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm

centos7卸载mariadb安装mysql-5

3.安装mysql

sudo yum install mysql-server

centos7卸载mariadb安装mysql-6

按提示步骤来就行

centos7卸载mariadb安装mysql-7

 

 

原文链接:,转发请注明来源落伍老站长!

发表评论