Just Do IT !

Centos7配置yum源安装Mysql

字数统计: 86阅读时长: 1 min
2019/10/14 Share

构建下载仓库

/etc/yum.repos.d/下新建mysql-community.repo

1
2
3
4
5
6
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=https://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

安装MySQL服务器

yum -y install mysql-server

启动MySQL服务

systemctl start mysqld.service

运行一下命令查看一下运行状态

systemctl status mysqld.service

CATALOG
  1. 1. 构建下载仓库
  2. 2. 安装MySQL服务器
  3. 3. 启动MySQL服务