wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql56-community-el7/mysql-community-client-5.6.41-2.el7.x86_64.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql56-community-el7/mysql-community-common-5.6.41-2.el7.x86_64.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql56-community-el7/mysql-community-devel-5.6.41-2.el7.x86_64.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql56-community-el7/mysql-community-embedded-devel-5.6.41-2.el7.x86_64.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql56-community-el7/mysql-community-libs-5.6.41-2.el7.x86_64.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql56-community-el7/mysql-community-server-5.6.41-2.el7.x86_64.rpmnode
安装common包时可能报与mariadb-libs依赖冲突,解决方案:mysql
#列出全部被安装的rpm package sql
rpm -qa | grep mariadb
#卸载
rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64.net
详细请参考https://blog.csdn.net/kwame211/article/details/76011421server
yum localinstall mysql-community-common-5.6.41-2.el7.x86_64.rpm
yum localinstall mysql-community-libs-5.6.41-2.el7.x86_64.rpm blog
yum localinstall mysql-community-devel-5.6.41-2.el7.x86_64.rpm
yum localinstall mysql-community-embedded-devel-5.6.41-2.el7.x86_64.rpm
yum localinstall mysql-community-client-5.6.41-2.el7.x86_64.rpm
yum localinstall mysql-community-server-5.6.41-2.el7.x86_64.rpm get
systemctl start mysqlit