"Error 8200 (HY000): Unsupported drop primary key when the table is using clustered index

【 TiDB 使用环境】生产环境
【 TiDB 版本】7.5
【复现路径】做过哪些操作出现的问题
mysql DM同步TIDB
【遇到的问题:问题现象及影响】
因为mysql主库有问题 一个表删除了主键,但是tidb 无法删除主键
"Error 8200 (HY000): Unsupported drop primary key when the table is using clustered index
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面

https://docs.pingcap.com/zh/tidb/stable/clustered-indexes#聚簇索引
不支持这种操作

1 个赞

查到官网有这个了,但是不支持就无解啊

表大吗,考虑下曲线救国,重建表,重建索引数据迁移过去。

只有重建表呢,将表建成非聚簇表
聚簇索引不支持删除

重建表,改成非聚簇表

删除重建,导入数据

重建表,导数据

你这截图还带水印的,姓名都泄露了

重建表

要用非聚簇表

先重建表,再改用非聚簇表吧

聚簇表不支持,改非聚簇表

不支持的,重新建表吧

重新建表