参考链接: https://blog.csdn.net/zxy987872674/article/details/81949430
1、下载mysql安装包
下载地址:https://dev.mysql.com/downloads/mysql/
2、解压缩安装包
tar xvf MySQL-5.6.44-1.el7.x86_64.rpm-bundle.tar
3、安装前,注意:
https://blog.csdn.net/tianshuhao521/article/details/93854326
4、安装依赖
1、卸载系统自带的MariaDB。【参考 https://blog.csdn.net/tianshuhao521/article/details/93854326】
(1) 查看有没有安装mariadb:rpm -qa|grep -i mariadb (2) 卸载mariadb:rpm -e --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64 (3) yum install perl yum -y install autoconf yum install libaio
5.安装mysql
$ rpm -ivh MySQL-client-5.6.44-1.el7.x86_64.rpm $ rpm -ivh MySQL-devel-5.6.44-1.el7.x86_64.rpm $ rpm -ivh MySQL-embedded-5.6.44-1.el7.x86_64.rpm $ rpm -ivh MySQL-server-5.6.44-1.el7.x86_64.rpm
问题汇总:
1、file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.44-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
$ yum remove mysql-libs
原文地址:https://www.cnblogs.com/libaoshan/p/11122238.html
时间: 2024-11-05 13:38:31