设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL临时文件大小设定

发布时间:2022-07-04 13:21 所属栏目:115 来源:互联网
导读: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.
  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位的。不支持裸设备。
  
  画重点:要设置innodb_temp_data_file_path,可以是一个临时文件也可以是多个,一定要设置autoextend自动扩展,同时也有设置一个最大值,根据业务系统数据量大小,可以设置几G。工作中遇到过的问题,没有设置max最大值,结果导致磁盘空间满了,业务停了,当然是业务做调整导致的。
  
  innodb_temp_data_file_path=ibtmp1:50M;ibtmp2:12M:autoextend:max:500MB

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读