mysql 临时目录限定大小_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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值