1、数据库 安装

https://downloads.mariadb.org/mariadb/repositories/#distro=CentOS&distro_release=centos7-amd64--centos7&mirror=kku&version=10.4

/etc/yum.repos.d/MariaDB.repo 

# MariaDB 10.4 CentOS repository list - created 2019-08-24 12:49 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

  国内源

[mariadb]
name = MariaDB
baseurl = https://mirrors.ustc.edu.cn/mariadb/yum/10.2/centos7-amd64
gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1

 yum install MariaDB-server MariaDB-client

systemctl start mariadb 

systemctl enable mariadb 

 mysql_secure_installation

 

 

mysql

https://dev.mysql.com/downloads/file/?id=484922

 

 

下载 rpm包

rpm -ivh  安装

yum install -y mysql-community-server

systemctl  start mysqld

systemctl  enable mysqld

 

posted @ 2019-08-24 20:56  mmszxc  阅读(84)  评论(0)    收藏  举报