MySQL 5.7 source code compiled under Windows
Prerequisite Preparation
======
- Visual Studio 2013:
- MySQL 5.7 Source code: can be downloaded from here: http://dev.mysql.com/downloads/mysql/Download, select source Codes
- When installing the CMake https://cmake.org/installation, select Add in Path
- Install bison:http://gnuwin32.sourceforge.net/packages/bison.htm installation path do not have spaces
- "Optional" sourceinsight for reading the source code
Start running
======
1. MySQL5.7 source files are stored in the D:\TEST\mysql-5.7.12 directory, as shown in:
2. Create Bld folder: The folder name is optional and goes to the folder.
3. Run the following command to download the Boost folder and create the relevant project file under the Bld folder:
If you are compiling 64-bit, you need to add the parameter cmake: –G "Visual Studio Win64"
4. The Boost folder is in the download:
5. Command completion:
6. Open the sql\sql_locale.cc file, use the UTF-8 format, save it Again, or the compilation will go wrong.
7. Run the following command to start compiling:
8. Compilation succeeded:
9. In the folder, there are MySQL folders and WinZip packages generated:
Resources:
Http://www.cnblogs.com/yuemenglong/archive/2011/06/14/2080262.html
Http://www.tuicool.com/articles/ziUbmu
MySQL 5.7 source code compiled under Windows