Home > Article > Backend Development > Mysql5.0 Chinese version download method to compile MYSQL5148 in VS2008
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. Open the D:mysqlsqlsql_local.cc file with ULTRA EDIT, save it as UTF-8 format, overwrite the original file
7. Modify file D :test_lc_time_sz function in mysqlsqlmysqld.cc, change 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);
}
Comment it
8. Put the entire folder D:mysqlwindata Copy to D:mysqlsql
9. Use VS2008 to open D:mysqlMySql.sln, compile the code, and execute the mysqld project
10. Open D:mysqlclientDebugmysql.exe, this is a client tool, equivalent to ORALCE's SQLPLUS
11. Inside Execute the statement SHOW DATABASES to test.
The above introduces the method of downloading the Chinese version of mysql5.0 and compiling MYSQL5148 in VS2008, including the content of downloading the Chinese version of mysql5.0. I hope it will be helpful to friends who are interested in PHP tutorials.