1. 程式人生 > >一鍵yum安裝mysql

一鍵yum安裝mysql

雲計算自動化

#!/bin/bash
yum -y install wget
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql57-community-release-el7-11.noarch.rpm
yum makecache
yum -y install mysql-community-server.x86_64

systemctl restart mysqld
systemctl enable mysqld
sed -ri ‘/^SELINUX=/cSELINUX=disabled‘ /etc/selinux/config

systemctl stop firewalld
grep password /var/log/mysqld.log

一鍵yum安裝mysql