限制mysql临时表ibtmp1文件大小:
vi /etc/my.cnf (只能改my.cnf文件重启生效,不支持mysql会话里set global操作)
innodb_temp_data_file_path = ibtmp1:12M:autoextend:max:500G
:wq
systemctl restart mysql
查看:
mysql -u root -p
输入密码
show variables like 'innodb_temp_data_file_path';
也可以关注下ibtmp1文件大小
标签:文件大小,ibtmp1,cnf,file,mysql,path From: https://blog.51cto.com/yangzhiming/5992172