MySQL临时文件大小设置

the size limit of individual files is determined by the operating system. File size can be more than 4GB on operating systems that support large files. Use of raw disk partitions for global temporary tablespace data files is not supported.
说明:临时表空间的临时文件的大小是由操做系统决定的,文件大小是能够超过4G的,只有操做系统支持就能够了。一般咱们用的操做系统都是CentOS或者RHEL 64位的。不支持裸设备。

The autoextend and max attributes can be used only for the data file specified last in the innodb_temp_data_file_path setting. For example:
画重点:要设置innodb_temp_data_file_path,能够是一个临时文件也能够是多个,必定要设置autoextend自动扩展,同时也有设置一个最大值,根据业务系统数据量大小,能够设置几G。工做中遇到过的问题,没有设置max最大值,结果致使磁盘空间满了,业务停了,固然是业务作调整致使的。

[mysqld]
innodb_temp_data_file_path=ibtmp1:50M;ibtmp2:12M:autoextend:max:500MB
相关文章
相关标签/搜索