centos7.4 安装mysql详细流程
Posted libaoshan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7.4 安装mysql详细流程相关的知识,希望对你有一定的参考价值。
参考链接: 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
以上是关于centos7.4 安装mysql详细流程的主要内容,如果未能解决你的问题,请参考以下文章