Correct MySQL kernel compilation procedure

Source: Internet
Author: User
Compiling the MySQL kernel is often used. The following articles mainly introduce the correct method for compiling the MySQL kernel. If you are curious about compiling the MySQL kernel technology, the following articles will unveil its mysteries. I hope it will help you in this regard. Keywords: MySQL kernel Database Security Configuration User Authentication Module password recovery

Compiling the MySQL kernel is often used. The following articles mainly introduce the correct method for compiling the MySQL kernel. If you are curious about compiling the MySQL kernel technology, the following articles will unveil its mysteries. I hope it will help you in this regard. Keywords: MySQL kernel Database Security Configuration User Authentication Module password recovery

Compiling the MySQL kernel is often used. The following articles mainly introduce the correct method for compiling the MySQL kernel. If you are curious about compiling the MySQL kernel technology, the following articles will unveil its mysteries. I hope it will help you in this regard.

Keywords: MySQL kernel Database Security Configuration User Authentication Module password restoration Stored Procedure writing database index

Summary:

In the latest version, a set of code is used in windows and linux. This article takes the mysql-5.1.7 as the analysis object, explains in detail the method of compiling MySQL kernel.

In the latest version, a set of code is used in windows and linux. For example, the description of the INSTALL-WIN-SOURCE file in the mysql-6.0.4-alpha version:

 
 
  1. TobuildMySQLonWindowsfromsource,youmustsatisfythe
  2. followingsystem,compiler,andresourcerequirements:
  3. *Windows2000,WindowsXP,ornewerversion.WindowsVistais
  4. notsupporteduntilMicrosoftcertifiesVisualStudio2005on
  5. Vista.
  6. *CMake,whichcanbedownloadedfromhttp://www.cmake.org.
  7. Afterinstalling,modifyyourpathtoincludethecmake
  8. binary.
  9. *MicrosoftVisualC++2005ExpressEdition,VisualStudio.Net
  10. 2003(7.1),orVisualStudio2005(8.0)compilersystem.
  11. *IfyouareusingVisualC++2005ExpressEdition,youmust
  12. alsoinstallanappropriatePlatformSDK.Moreinformationand
  13. linkstodownloadsforvariousWindowsplatformsisavailable
  14. fromhttp://msdn.microsoft.com/platformsdk/.
  15. *IfyouarecompilingfromaBitKeepertreeormakingchanges
  16. totheparser,youneedbisonforWindows,whichcanbe
  17. downloadedfrom
  18. http://gnuwin32.sourceforge.net/packages/bison.htm.Download
  19. thepackagelabeled"Completepackage,excludingsources".
  20. Afterinstallingthepackage,modifyyourpathtoincludethe
  21. bisonbinaryandensurethatthisbinaryisaccessiblefrom
  22. VisualStudio.
  23. *Cygwinmightbenecessaryifyouwanttorunthetestscript
  24. orpackagethecompiledbinariesandsupportfilesintoaZip
  25. archive.(Cygwinisneededonlytotestorpackagethe
  26. distribution,nottobuildit.)Cygwinisavailablefrom
  27. http://cygwin.com.
  28. *3GBto5GBofdiskspace.

In this way, the project file can be generated and compiled using the vs tool. .

For details about how to compile the MySQL kernel, I chose 5.1.7 as the analysis object.

Steps for installing the Code:

1.decompress the package mysql-5.1.7-beta-win-src.zip.

2. Use vs2003 to open the project file mysql. sln.

3. Set the mysqld project as the startup project.

4. On the properties page of mysqld, set the command parameter to -- console. In this way, you can debug the code in debug mode.

Configure Command Parameters

5. set breakpoints. For example, the total query entry is the handle_select function.

6.compile the mysqlproject and generate mysql.exe in the mysql-5.1.7-betaclient_debugdirectory.

7. Use "Start new instance" or "go to single step to execute new instance" for debugging.

Perform debugging

8. mysql-5.1.7-betaclient_debugdirectory to generate mysql.exe. The execution statement will be executed at the breakpoint for debugging.

Enter the debugging status

9. For the corresponding data file, see the mysql-5.1.7-betadata directory.

The above content describes how to compile the MySQL kernel in detail, hoping to help you in this regard.

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.