Skip to content

Instantly share code, notes, and snippets.

@drewlander
Last active July 23, 2017 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewlander/a4cab436f80cf0a6e6002aa0d12fc730 to your computer and use it in GitHub Desktop.
Save drewlander/a4cab436f80cf0a6e6002aa0d12fc730 to your computer and use it in GitHub Desktop.
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