By User13177919-Oracle on VI 02, 2014
However, in the good ol' MySQL tradition, the above link does give you only the instructions on how to build it on linux. And completely ignores the fact that there're other OSes too that people develop on.
To fill in that gap, I've compiled a small step by step guide on how to do it on windows. Note that I always, as a principle, build out-of-source.
The typical setup I have is :
bzr clone lp:~mysql/mysql-server/5.7 mysql-trunk
cmake -DWITH_DEBUG=1 -DMYSQL_PROJECT_NAME=mysql-trunk ..
devenv /build debug mysql-trunk.sln
This has been tested to work on a 32 bit compile using VS2013 on a Windows7 64 bit build. Note that you'll need other things too (bison, eventually openssl etc) that I will assume you already have set up.
- Download Boost 1.55.0. It's the *only* version that is known to work currently.
- Extract boost_1_55_0/ from the zip to c:\boost\boost_1_55_0
- Go to Control Panel/System/Environment variables and set WITH_BOOST=C:\boost\boost_1_55_0 in User variables. Make sure you restart your open command line terminal windows after this !
- If you're upgrading from non-boost build, remove your bld/ directory and create a new one.
- run cmake as you'd typically do. You should get:
- -- Local boost dir C:/boost/boost_1_55_0
- -- Local boost zip LOCAL_BOOST_ZIP-NOTFOUND
- -- BOOST_VERSION_NUMBER is #define BOOST_VERSION 105500
- -- BOOST_INCLUDE_DIR C:/boost/boost_1_55_0
- Build as normal (devenv /build debug ...). It should work.