How to compile MYSQL5.1.48 in VS2008 _php techniques

Source: Internet
Author: User
1, download MYSQL5.1.48 source code, cmake,vs2008

2, installation CMake and VS2008, decompression MYSQL5.1.48 to D:\mysql

3, open CMD;CD D:\mysql

4, run the command in cmd: WScript win\configure.js with_innobase_storage_engine with_partition_storage_engine mysql_server_ Suffix=-pro

5. Run the command in CMD: Win\build-vs9.bat

6, with ultra Edit open D:\mysql\sql\sql_local.cc file, save as UTF-8 format, covering the original file

7, modify the file D:\mysql\sql\mysqld.cc in the TEST_LC_TIME_SZ function, the code

if ((*loc)->max_month_name_length!= Max_month_len | |

(*loc)->max_day_name_length!= Max_day_len)

{

Dbug_print ("Wrong Max Day name (or month name) length for locale:",

("%s", (*loc)->name));

Dbug_assert (0);

}

Note up

8. Copy D:\mysql\win\data entire folder to D:\mysql\sql

9. Open D:\mysql\MySql.sln with VS2008, compile code, execute MYSQLD Project

10, open D:\mysql\client\Debug\mysql.exe, this is the client tool, the equivalent of Oralce sqlplus

11, in the inside execution statement show DATABASES, for testing.

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.