Home >Backend Development >PHP Tutorial >Method to compile MYSQL5.1.48 in VS2008_PHP tutorial
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