Last active
July 23, 2017 17:23
-
-
Save drewlander/a4cab436f80cf0a6e6002aa0d12fc730 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF | tee -a /etc/yum.repos.d/MariaDB.repo | |
# MariaDB 10.1 CentOS repository list | |
# http://downloads.mariadb.org/mariadb/repositories/ | |
[mariadb] | |
name = MariaDB | |
baseurl = http://yum.mariadb.org/10.1/centos7-amd64 | |
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB | |
gpgcheck=1 | |
EOF | |
until yum install MariaDB-server MariaDB-client -y | |
do | |
echo "Try again" | |
sleep 2 | |
done | |
systemctl start mariadb.service | |
systemctl enable mariadb.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment