简体   繁体   English

磁盘空间不足时更改表引擎

[英]Changing table engine while low on disk space

my table size is about 9GB and I have 4GBs left of space 我的桌子大小约为9GB,还剩4GB空间

When changing the table engine, the table is copied to a temp engine. 更改表引擎时,会将表复制到临时引擎。

Would this process work if I'm low on space? 如果我的空间不足,此过程是否可行?

As far as I know, the temp table created during alter table is kept in the same location as the original file ( usually /var/lib/mysql/{db_name}/{table_name.XXX} ). 据我所知,在alter table期间创建的临时表与原始文件位于同一位置(通常为/var/lib/mysql/{db_name}/{table_name.XXX})。 And for the same reason the alter table should fail with out of disk error( error code: 28). 并且出于相同的原因,更改表应该会因磁盘不足错误而失败(错误代码:28)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM