新聞中心
這篇文章主要講解了“MySQL中innodb的啟動過程”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“mysql中innodb的啟動過程”吧!
創(chuàng)新互聯(lián)主要從事成都做網(wǎng)站、成都網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)雙灤,十載網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):13518219792
fil_init 主要是初始化文件打開指針哈希表,所有打開的文件全記錄在 fil_system 之中,構(gòu)造按名字查找的哈希表
buf_pool_init 內(nèi)存緩沖池的初始化,對應(yīng) buf_pool_ptr 數(shù)組之中,還初始化了 adaptive hash index 的內(nèi)存
log_init 初始化log緩沖區(qū),默認大小為 512*16k, 每個log頁面大小為 #define OS_FILE_LOG_BLOCK_SIZE 512 日志文件在創(chuàng)建過程中也是指定不用系統(tǒng)緩存
www.2cto.com
lock_sys_create 初始化系統(tǒng)鎖,就是建了一個HASH表,lock_sys
recv_recovery_from_checkpoint_start 開始執(zhí)行恢復(fù)
dict_boot 初始化表結(jié)構(gòu)的緩存,dict_sys,建兩個hash表,可以根據(jù)表名和表ID查找;初始化系統(tǒng)表,就四個 SYS_TABLES SYS_COLUMNS SYS_INDEXES SYS_FIELDS ;初始化 insert buffer,每一個表空間對應(yīng)一個;讀入上面四個系統(tǒng)表中的內(nèi)容
trx_sys_init_at_db_start 初初化事務(wù)結(jié)構(gòu)體 trx_sys ; Creates the global purge system control structure and inits the history
dict_create_or_check_foreign_constraint_tables 創(chuàng)建另外兩張系統(tǒng)表 SYS_FOREIGN SYS_FOREIGN_COLS www.2cto.com
啟動的線程,
IO部分共10個,可通過參數(shù)配置
1個 insert buffer thread
1個 log thread
4個 aio read thread
4個 aio write thread
1個 lock timeout thread A thread which wakes up threads whose lock wait may have lasted too long
1個 error monitor thread A thread which prints warnings about semaphore waits which have lasted too long
1個 monitor thread A thread which prints the info output by various InnoDB monitors
1個 master thread The master thread controlling the server
1個 thread handle shutdown
1個 handle connections socket 專門用來處理連理的
1個 trx_rollback_or_clean_all_recovered Rollback the uncommitted transactions which have no user session www.2cto.com
struct st__plugin *mysql_optional_plugins[]=
{
builtin_innobase_plugin, builtin_perfschema_plugin, builtin_partition_plugin, 0
};
struct st_mysql_plugin *mysql_mandatory_plugins[]=
{
builtin_binlog_plugin, builtin_mysql_password_plugin, builtin_csv_plugin, builtin_heap_plugin, builtin_myisam_plugin, builtin_myisammrg_plugin, 0
};
初始化的 binlog memory myisam innodb pefformance_schema partition
感謝各位的閱讀,以上就是“mysql中innodb的啟動過程”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對mysql中innodb的啟動過程這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!
文章標(biāo)題:mysql中innodb的啟動過程
網(wǎng)頁網(wǎng)址:http://www.dlmjj.cn/article/gisjsh.html