MySQL 5.7 source code compiled under Windows

Source: Internet
Author: User

MySQL 5.7 source code compiled under Windows

Prerequisite Preparation

======

    1. Visual Studio 2013:
    2. MySQL 5.7 Source code: can be downloaded from here: http://dev.mysql.com/downloads/mysql/Download, select source Codes
    3. When installing the CMake https://cmake.org/installation, select Add in Path
    4. Install bison:http://gnuwin32.sourceforge.net/packages/bison.htm installation path do not have spaces
    5. "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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.