Skip to content

Instantly share code, notes, and snippets.

@Revlin
Forked from kamermans/build_mysql51.sh
Last active August 29, 2015 14:14
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 Revlin/0f97a5991ed1622ebe6c to your computer and use it in GitHub Desktop.
Save Revlin/0f97a5991ed1622ebe6c to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
sudo apt-get install build-essential libncurses5-dev libedit-dev libreadline-dev libssl-dev
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.72.tar.gz
tar -zxf mysql-5.1.72.tar.gz
cd mysql-5.1.72
./configure '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--with-embedded-server' '--with-embedded-privilege-control' '--with-readline'
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment