centos下yum安裝mysql5.6.41

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

相關文章
相關標籤/搜索