centos下yum安装mysql5.6.41

北慕城南 提交于 2019-12-09 22:39:25

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.rpm

安装common包时可能报与mariadb-libs依赖冲突,解决方案:

#列出所有被安装的rpm package 

rpm -qa | grep mariadb

#卸载
rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64

详细请参考https://blog.csdn.net/kwame211/article/details/76011421

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 

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 

systemctl start mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!