小编SWa*_*ahi的帖子

无法在 mysql 上对表进行分区

当我alter table在 innodb 表上运行分区时,我在 Mysql 5.7 上收到此错误:

Foreign keys are not yet supported in conjunction with partitioning
Run Code Online (Sandbox Code Playgroud)

知道我已经drop foreign key有了这张表,以及drop foreign key这张表的 id 在哪里。

现在这是我的表架构:

| record | CREATE TABLE `record` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `altitude` smallint(6) DEFAULT NULL,
  `counter` double DEFAULT NULL,
  `datetime` datetime NOT NULL,
  `details` longtext,
  `deviation` smallint(6) DEFAULT NULL,
  `engine` tinyint(1) DEFAULT NULL,
  `event` smallint(6) DEFAULT NULL,
  `fuel_level` double DEFAULT NULL,
  `gsm_level` int(11) DEFAULT NULL,
  `latitude` double NOT …
Run Code Online (Sandbox Code Playgroud)

mysql foreign-keys database-partitioning

1
推荐指数
1
解决办法
1万
查看次数