Created
May 13, 2016 19:34
-
-
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
This file contains 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
#!/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