自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

MySQL內(nèi)核正確的編譯操作流程

數(shù)據(jù)庫 MySQL
以下的文章主要是對MySQL內(nèi)核編譯的介紹,如果你對其相關的實際操作有興趣了解的話,以下的文章將會給你提供相關的知識。

編譯MySQL內(nèi)核是我們經(jīng)常用到的,以下的文章主要是介紹編譯MySQL內(nèi)核的正確方法,如果你對編譯MySQL內(nèi)核技術,心存好奇的話,以下的文章將會揭開它的神秘面紗。希望會給你帶來一些幫助在此方面。

關鍵字: MySQL內(nèi)核 數(shù)據(jù)庫安全配置 用戶認證模塊 密碼恢復 存儲過程編寫 數(shù)據(jù)庫索引

內(nèi)容摘要:

在***的版本中,windows環(huán)境與linux環(huán)境下使用一套代碼。本文以mysql-5.1.7作為分析的對象,詳細講解編譯MySQL內(nèi)核的方法。

在***的版本中,windows環(huán)境與linux環(huán)境下使用一套代碼。比如mysql-6.0.4-alpha版本中的INSTALL-WIN-SOURCE文件的描述:

 

  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. 

 

通過這樣的方法,生成項目文件,從而可以通過vs工具進行編譯。在先前的版本中,windows下的代碼和linux下的代碼是兩個壓縮包,比如windows下的一個軟件包名為,mysql-5.1.7-beta-win-src.zip。

詳細講解如何編譯MySQL內(nèi)核:這里我選擇5.1.7作為分析的對象。

安裝代碼的步驟:

1.解壓縮文件包mysql-5.1.7-beta-win-src.zip。

2.使用vs2003打開項目文件mysql.sln。

3.設置mysqld項目為啟動項目。

4.在mysqld的屬性頁設置命令參數(shù)為:--console。這樣就可以用debug方式調(diào)試代碼了。

 

配置命令參數(shù)

5.設置斷點,比如查詢的總?cè)肟谑莌andle_select函數(shù)。

6.編譯mysql項目,將會在mysql-5.1.7-betaclient_debug目錄下生成mysql.exe。

7.使用“啟動新實例”或者“進入單步執(zhí)行新實例”進行調(diào)試。

 

執(zhí)行調(diào)試操作

8. mysql-5.1.7-betaclient_debug目錄下生成mysql.exe,執(zhí)行語句,將會執(zhí)行到斷點進行調(diào)試。

 

進入調(diào)試狀態(tài)

9.相應的數(shù)據(jù)文件,見mysql-5.1.7-betadata目錄。

上述的相關內(nèi)容就是對詳細講解如何編譯MySQL內(nèi)核的描述,希望會給你帶來一些幫助在此方面。

【編輯推薦】

  1. Mysql大小寫中易出現(xiàn)的問題的解決
  2. MySQL隱藏空間相關問題的解答
  3. MySQL數(shù)據(jù)庫命令的基礎簡介
  4. MySQL數(shù)字類型中的三種常用種類
  5. MySQL 5.0基礎的基本內(nèi)容的介紹

 

責任編輯:佚名 來源: 博客園
相關推薦

2010-05-26 09:21:13

MySQL命令

2010-06-04 19:15:42

MySQL安裝

2010-05-24 17:12:23

連接MYSQL

2010-06-04 15:47:46

MySQL初始化roo

2010-05-26 11:21:00

MySQL數(shù)據(jù)庫操作

2010-05-25 09:47:05

2010-05-13 14:27:52

訪問MySQL

2010-07-20 16:05:27

SQL Server補

2010-05-13 09:49:08

MySQL調(diào)優(yōu)

2011-01-14 16:51:44

Linux內(nèi)核

2010-06-13 15:10:49

MySQL loadd

2010-05-11 11:18:06

Mysql mysql

2011-05-06 17:43:53

硒鼓

2010-08-18 14:10:38

DB2入門

2010-05-12 09:57:17

MySQL

2010-05-24 13:04:55

MySQL 事件調(diào)度器

2010-08-06 18:01:13

DB2數(shù)據(jù)備份

2010-08-04 10:03:37

DB2 9 分布式管理

2010-06-01 12:51:23

MySQL數(shù)據(jù)庫

2009-10-16 09:45:41

Linux內(nèi)核操作系統(tǒng)
點贊
收藏

51CTO技術棧公眾號