Compiling MySQL source code under Windows

Source: Internet
Author: User

1. Compiling the Environment

Visual Studio 2013

Cmkake 3.1.3 (note version, in order to support vs2013)

Bison 2.4.1

MySQL 5.6.23

2. Install CMake, bison Note You may need to add the bin directory for CMake and bison to the PATH environment variable

Note: Bison 2.1 or later

3. Prepare MySQL source code

  

Open the mysql-5.6.23\sql\sql_locale.cc file with Notepad, save it as Utf-8, and replace mysql-5.6.17\sql\sql_locale.cc with the saved sql_locale.cc file.

Edit the mysql-5.6.23\sql\mysqld.cc file, comment out the function TEST_LC_TIME_SZ, Dbug_assert (0); Statement

  

CMake. -G "Visual Studio Win64"

Reference documents:

Http://www.mysql.com/support/supportedplatforms/database.html

  

Compiling MySQL source code under Windows

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.