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.
說明:臨時(shí)表空間的臨時(shí)文件的大小是由操作系統(tǒng)決定的,文件大小是可以超過4G的,只有操作系統(tǒng)支持就可以了。通常我們用的操作系統(tǒng)都是CentOS或者RHEL 64位的。不支持裸設(shè)備。
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:
畫重點(diǎn):要設(shè)置innodb_temp_data_file_path,可以是一個(gè)臨時(shí)文件也可以是多個(gè),一定要設(shè)置autoextend自動(dòng)擴(kuò)展,同時(shí)也有設(shè)置一個(gè)最大值,根據(jù)業(yè)務(wù)系統(tǒng)數(shù)據(jù)量大小,可以設(shè)置幾G。工作中遇到過的問題,沒有設(shè)置max最大值,結(jié)果導(dǎo)致磁盤空間滿了,業(yè)務(wù)停了,當(dāng)然是業(yè)務(wù)做調(diào)整導(dǎo)致的。
[MySQLd]
innodb_temp_data_file_path=ibtmp1:50M;ibtmp2:12M:autoextend:max:500MB
分享文章:MySQL臨時(shí)文件大小設(shè)置
文章起源:http://www.rwnh.cn/article12/pgcddc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、域名注冊(cè)、虛擬主機(jī)、微信公眾號(hào)、ChatGPT、定制開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)