温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

MySQL临时文件大小设置

发布时间:2020-07-29 18:53:40 来源:网络 阅读:438 作者:roidba 栏目: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
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI