Skip to content

Instantly share code, notes, and snippets.

@alastori
Created May 13, 2016 19:34
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 alastori/feec008d636ad9f6a7ac4fbb49d63183 to your computer and use it in GitHub Desktop.
Save alastori/feec008d636ad9f6a7ac4fbb49d63183 to your computer and use it in GitHub Desktop.
Bash script to install MySQL Utilities via RPM in Enterprise Linux 7.x
#!/bin/bash
#Bash script to install MySQL Utilities via RPM in Enterprise Linux 7.x
#Copy the MySQL Utilities and Connector Python RPMs into the $PACKAGES_DIR and run this script as root
#You can find the community binaries in http://dev.mysql.com/downloads and
#commercial binaries in http://support.oracle.com (preferable) or http://edelivery.oracle.com
#Modify these variables as you wish
PACKAGES_DIR=/home/vagrant/packages #This folder already contains RPMs
set -e # stop script execution on any error
#Next lines install MySQL Utilities from RPM file
echo "Installing MySQL Utilities..."
cd $PACKAGES_DIR
yum -y localinstall mysql-{utilities,connector-python}*.rpm
echo "MySQL Utilities installed via RPM from $PACKAGES_DIR"
mysqlserverinfo --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment