sudo chown systemd-coredump:input ehs_factors_real_time_data.ibdsudo chmod 640 ehs_factors_real_time_data.ibd
然后使用以下命令:
1)先解除表空间占用:执行完后,数据库文件下的.ibd文件会消失。
ALTER TABLE ehs_factors_real_time_data DISCARD TABLESPACE;ALTER TABLE `ylehs`.`ehs_factors_real_time_data` IMPORT TABLESPACE;

再确认数据库总行数是否发生变化:
SELECT(SELECT COUNT(*) FROM ehs_factors_real_time_data) AS ehs_factors_real_time_data_count,(SELECT COUNT(*) FROM ehs_factors_data) AS ehs_factors_data_count;


文章转载自巴韭特锁螺丝,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




