Mysql體繫結構整理,mysql體繫結構

來源:互聯網
上載者:User

Mysql體繫結構整理,mysql體繫結構

MySQL由資料檔案和資料庫執行個體組成,是單進程多線程架構組成。
資料庫檔案:物理作業系統檔案或者其它檔案的集合,在mysql中,資料庫檔案可以是frm、myd、myi、ibd等結尾的檔案,當使用ndb儲存引擎時候,不是os檔案,是存放於記憶體中的檔案;
資料庫執行個體:由資料庫後台進程/線程以及一個共用記憶體區組成的記憶體結構,共用記憶體可以被啟動並執行後台進程/線程所共用。資料庫關閉,資料執行個體就不存在了,資料庫檔案還是儲存在磁碟上。

主要組件介紹:
1.Connectors指的是不同開發語言中與SQL的介面程式;
2.Management Serveices & Utilities: 服務和工具管理介面;
3.Connection Pool: 串連池;
4 SQL Interface: SQL介面; 
5.Parser: SQL解析器;
6.Optimizer: 查詢最佳化工具; 
7.Cache和Buffer: 查詢快取; 
8.Engine :儲存引擎

未完,待續。。。

相關文章

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.