0
点赞
收藏
分享

微信扫一扫

Centos6 安装 mysql 5.7.x系列

seuleyang 2022-07-07 阅读 169

下载并安装用来配置mysql的yum源的rpm包

# 下载
wget http://repo.mysql.com/mysql57-community-release-el6-10.noarch.rpm
# 安装
yum -y localinstall mysql57-community-release-el6-10.noarch.rpm
# 或
rpm -Uvh mysql57-community-release-el6-10.noarch.rpm

安装成功后在/etc/yum.repos.d/下会多出几个mysql的yum源的配置,如下:

[root@centos6 mysql5.7_centos6]# ls -lh  /etc/yum.repos.d/
total 24K
-rw-r--r-- 1 root root 2.6K Feb 24 19:43 CentOS-Base.repo
-rw-r--r-- 1 root root 1.4K Feb 24 19:43 CentOS-Base.repo.backup
-rw-r--r-- 1 root root 220 Feb 24 19:43 CentOS-Epel.repo
-rw-r--r-- 1 root root 175 Mar 8 2014 devtoolset-2.repo
-rw-r--r-- 1 root root 1.6K Apr 5 2017 mysql-community.repo
-rw-r--r-- 1 root root 1.7K Apr 5 2017 mysql-community-source.repo
[root@centos6 mysql5.7_centos6]#

安装mysql

yum -y install mysql-community-server

安装成功后查看版本

[root@centos6 mysql5.7_centos6]# mysql -V
mysql Ver 14.14 Distrib 5.7.26, for Linux (x86_64) using EditLine wrapper


Centos6 安装 mysql 5.7.x系列_mysql


举报

相关推荐

0 条评论