Method to compile MYSQL5.1.48 in VS2008_PHP tutorial

WBOY
Release: 2016-07-21 15:36:33
Original
1114 people have browsed it

1. Download MYSQL5.1.48 source code, CMAKE, VS2008

2. Install CMAKE and VS2008, unzip MYSQL5.1.48 to D:mysql

3. Open CMD; CD D:mysql

4. Run the command in CMD: wscript winconfigure.js WITH_INNOBASE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro

5. Run the command in CMD: winbuild-vs9.bat

6. Use ULTRA EDIT Open the D:mysqlsqlsql_local.cc file, save it in UTF-8 format, and overwrite the original file

7. Modify the test_lc_time_sz function in the file D:mysqlsqlmysqld.cc and change the code

if (( *loc)->max_month_name_length != max_month_len || (or month name) length for locale:",

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

DBUG_ASSERT(0);

}

Comment it out

8. Copy the entire folder of D:mysqlwindata to D:mysqlsql

9. Use VS2008 to open D:mysqlMySql.sln and compile the code , execute the mysqld project

10. Open D:mysqlclientDebugmysql.exe, this is a client tool, equivalent to ORALCE's SQLPLUS

11. Execute the statement SHOW DATABASES in it for testing.



http://www.bkjia.com/PHPjc/322105.html

www.bkjia.com

true

TechArticle1. Download MYSQL5.1.48 source code, CMAKE, VS2008 2. Install CMAKE and VS2008, unzip MYSQL5.1.48 to D :mysql 3. Open CMD; CD D:mysql 4. Run the command in CMD: wscript winconfigure.js W...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!