InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes androw data. The bigger you set this the less disk I/O is needed to access data in tables. On a dedicated database server you may set this parameter up to 80% of the machine physical memory size. Do not set it too large, though, because competition of the physical memory may cause paging in the operating system. Note that on 32bit systems you might be limited to 2-3.5G of user level memory per process, so do not set it too high.
方式一、临时有效(本次启动)
进入cmd,输入mysql -uroot -p,输入密码登录MySQL。查看原先缓冲池大小:
show variables like 'innodb_buffer_pool_size';
The number of regions that the InnoDB buffer pool is divided into. For systems with buffer pools in the multi-gigabyte range, dividing the buffer pool into separate instances can improve concurrency, by reducing contention as different threads read and write to cached pages.
innodb_buffer_pool_chunk_size
用来定义InnoDB缓冲池大小调整操作的块大小,my.ini文件中并没有此项配置,只能在运行时通过show variables like 'innodb_buffer_pool_chunk_size' 查看,并在运行时通过set global innodb_buffer_pool_chunk_size=块大小 来设置。
官方中的解释为 innodb_buffer_pool_size/innodb_buffer_pool_chunk_size 不应该大于1000。