Skip to content
Compile and install MySQL
Shell Groff Perl
Failed to load latest commit information.
bin Fix archive URL Dec 14, 2015
build change to perlbrew like layout Feb 15, 2012
dists change to perlbrew like layout Feb 14, 2012
share/mysql-build Add mysql 5.5.48, 5.5.49, 5.6.30, 5.7.11, 5.7.12 May 2, 2016
xt tweak Jan 15, 2015
.gitignore add .gitignore Feb 15, 2012
LICENSE Add LICENSE Apr 13, 2015 Update Usage Dec 14, 2015


mysql-build - provides a command to compile and install different versions of MySQL.

The overall structure is loosly borrowed from Sam Stephenson's ruby-build.


git clone git:// ~/mysql-build

export PATH="$HOME/mysql-build/bin:$PATH"


mkdir -p ~/opt/mysql
mysql-build -v 5.7.10 ~/opt/mysql/mysql-5.7.10

cd ~/opt/mysql/mysql-5.7.10
./bin/mysqld --initialize-insecure --basedir=.
./bin/mysqld_safe &

./bin/mysql -e 'SELECT @@version'
Something went wrong with that request. Please try again.