[root@wg ~]# vi /etc/yum.repos.d/mysql-community.repo | [mysql57-community] | name=MySQL 5.7 Community Server | baseurl=http://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 [root@wg ~]# yum -y install mysql-community-server [root@wg ~]# systemctl start mysqld [root@wg ~]# systemctl enable mysqld