MySQL 表分区 报错:Table has no partition for value XXX

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL 表分区 报错:Table has no partition for value XXX相关的知识,希望对你有一定的参考价值。

对已存在的未分区的表进行分区

alter table test PARTITION BY RANGE(id) (PARTITION p1 VALUES LESS THAN (101),PARTITION p2 VALUES LESS THAN (201)  )

提示错误:

Table has no partition for value 201

原因是分区没有包含所有数据,改成:

alter table test PARTITION BY RANGE(id) (PARTITION p1 VALUES LESS THAN (1001),PARTITION p2 VALUES LESS THAN (2001)  )

就好了(id最大1655 比 2001 小)

以上是关于MySQL 表分区 报错:Table has no partition for value XXX的主要内容,如果未能解决你的问题,请参考以下文章

解决MySQL报错:ERROR 2006 (HY000): MySQL server has gone away No connection(图文并茂)

创建,增加,删除mysql表分区

MySQL创建自定义函数提示:This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its ......

django报错:django.db.utils.OperationalError: no such table:

JAVA报错no suitable driver

greendao table' has no column named 'column' code -1的问题。