Skip to content

Instantly share code, notes, and snippets.

@bradfordpythian
Last active February 17, 2017 15:43
Show Gist options
  • Save bradfordpythian/092852ac848e5b1e55a6ead42eb55c0b to your computer and use it in GitHub Desktop.
Save bradfordpythian/092852ac848e5b1e55a6ead42eb55c0b to your computer and use it in GitHub Desktop.
# This snippet performs the following for RedHat/CentOS/OL 6.x system
#
# - Clean Installation of Percona Server 5.6.26
#
# NOTE: Installing via yum is not permitted
# To simulate a base system run the following for CentOS 6.6, 6.7 and 6.8:
# vagrant init nrel/CentOS-6.6-x86_64; vagrant up --provider virtualbox
# vagrant init nrel/CentOS-6.7-x86_64; vagrant up --provider virtualbox
# vagrant init centos/6; vagrant up --provider virtualbox
# vagrant ssh
# To run this script automatically
# curl -sL https://gist.githubusercontent.com/bradfordpythian/092852ac848e5b1e55a6ead42eb55c0b/raw/61ebe953d812001d854d301aa1a5c19d24be1285/install_percona_56.sh | sh -
# Identify server
cat /etc/redhat-release
uname -a
# update base OS to current packages
sudo yum update -y
# Download and Install Percona Server
cd /tmp
wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.26-74.0/binary/redhat/6/x86_64/Percona-Server-5.6.26-74.0-r32f8dfd-el6-x86_64-bundle.tar
tar xvf Percona-Server-5.6.26-74.0-r32f8dfd-el6-x86_64-bundle.tar
sudo rpm -ivh Percona-Server-client-56-5.6.26-rel74.0.el6.x86_64.rpm Percona-Server-server-56-5.6.26-rel74.0.el6.x86_64.rpm Percona-Server-shared-56-5.6.26-rel74.0.el6.x86_64.rpm
rpm -qa | grep -i percona
mysql --version
# Start and Verify Percona Server
sudo service mysql start
sudo chkconfig mysql on
mysql -uroot -e "SELECT VERSION(),@@hostname;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment