Mysql 存储引擎 MyIsam 和 Innodb 引擎
myIsam 存储引擎: 只缓存索引,不缓存数据,对应的键缓存参数为 key_buffer_size
show variables like ‘key_buffer_size’;
set global key_buffer_size=xxxx;
或者 my.ini my.cnf
[server]
key_buffer_size=xxx;
InnoDB 缓冲池
show variables like ‘innodb_buffer_pool_size’;
set global innodb_buffer_pool_size=xxx;
[server]
innodb_buffer_pool_size=xxx;
buffer_pool