操作系统:Centos 7.4
MySQL版本: MySQL 5.7
登录服务器
1、下载数据库
cd usr/local/src/
wget https://repo.mysql.com//mysql57-community-release-el7-8.noarch.rpm
2、安装mysql
yum -y install mysql57-community-release-el7-8.noarch.rpm
3、查看mysql安装情况
yum repolist enabled | grep mysql.*
4、查看mysql server
yum install mysql-community-server
5、启动mysql
systemctl start mysqld
网友评论