tencent cloud

TencentDB for MySQL

문서TencentDB for MySQL

Issues Related to Storage Space

포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-12-23 10:38:05

Why Is Disk Space Not Released After the delete Command Is Run to Delete Table Data on an Instance in TencentDB for MySQL?

When you delete table data from instances by running the delete command, disk space is not released due to the mechanism of TencentDB for MySQL. To free up disk space, you need to perform operations for rebuilding tables. For details, see the following command.
OPTIMIZE TABLE ${table_name};
Note:
If the table to be deleted is an InnoDB table, run the following command to release disk space.
ALTER TABLE ${table_name} ENGINE=INNODB;

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백