【发布时间】:2013-06-17 16:10:44
【问题描述】:
我尝试动态更改“innodb_sort_buffer_size”以提高 InnoDB 索引创建性能。
当我(使用 root 用户)发出以下查询时,出现错误“ERROR 1238 (HY000): Variable 'innodb_sort_buffer_size' is a read only variable”。
mysql> SET GLOBAL innodb_sort_buffer_size=1024*1024*5;
ERROR 1238 (HY000): Variable 'innodb_sort_buffer_size' is a read only variable
据我看文档,这个变量可以随 SET GLOBAL 动态变化。
http://dev.mysql.com/doc/refman/5.6/en/innodb-parameters.html#sysvar_innodb_sort_buffer_size
所以我的问题如下。
这个变量真的是只读的吗?
还有其他方法可以提高 InnoDB 索引创建性能吗?
【问题讨论】: