Skip to content

Instantly share code, notes, and snippets.

@SammyLin
Forked from bradfordpythian/install_ghost.sh
Last active May 11, 2017 08:27
Show Gist options
  • Save SammyLin/418904f496ff4ebe4140f79b409d01dd to your computer and use it in GitHub Desktop.
Save SammyLin/418904f496ff4ebe4140f79b409d01dd to your computer and use it in GitHub Desktop.
Install gh-ost - MySQL Online Schema Change Tool
# Latest version can be identifed at https://github.com/github/gh-ost/releases/latest
cd /tmp
[ -z "${GHOST_VERSION}" ] && GHOST_VERSION="20170403125842"
wget https://github.com/github/gh-ost/releases/download/v1.0.36/gh-ost-binary-linux-${GHOST_VERSION}.tar.gz
tar xvfz gh-ost-binary-linux-${GHOST_VERSION}.tar.gz
file gh-ost
sudo mv gh-ost /usr/local/bin
# Latest version can be identifed at https://github.com/github/gh-ost/releases/latest
cd /tmp
[ -z "${GHOST_VERSION}" ] && GHOST_VERSION="20170403125842"
wget https://github.com/github/gh-ost/releases/download/v1.0.36/gh-ost-binary-osx-${GHOST_VERSION}.tar.gz
tar xvfz gh-ost-binary-osx-${GHOST_VERSION}.tar.gz
file gh-ost
sudo mv gh-ost /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment