Details
Description
CREATE TABLE `extralongname_extralongname_extralongname_extralongname_ext` ( |
`id` int(10) unsigned NOT NULL, |
`created_date` date NOT NULL DEFAULT '1970-01-01' COMMENT 'DATE(created), for index & partitions', |
`created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', |
PRIMARY KEY (`created`,`id`,`created_date`) |
) ENGINE=InnoDB STATS_PERSISTENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC |
/*!50100 PARTITION BY RANGE ( YEAR(created_date))
|
SUBPARTITION BY HASH ( MONTH(created_date))
|
SUBPARTITIONS 2
|
(PARTITION p2007 VALUES LESS THAN (2008) ENGINE = InnoDB,
|
PARTITION p2008 VALUES LESS THAN (2009) ENGINE = InnoDB
|
) */ |
Phase 4/7: Running 'mysql_fix_privilege_tables'
|
ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY'
|
ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY'
|
FATAL ERROR: Upgrade failed
|
After
truncate mysql.innodb_table_stats; |
mysql_upgrade runs fine.
Attachments
Issue Links
- is caused by
-
MDEV-13360 too long values in mysql.innodb_table_stats.table_name
-
- Stalled
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Alice [ alice ] |
Description |
{code:sql} CREATE TABLE `extralongname_extralongname_extralongname_extralongname_ext` ( `id` int(10) unsigned NOT NULL, `created_date` date NOT NULL DEFAULT '1970-01-01' COMMENT 'DATE(created), for index & partitions', `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`created`,`id`,`created_date`) ) ENGINE=InnoDB STATS_PERSISTENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC /*!50100 PARTITION BY RANGE ( YEAR(created_date)) SUBPARTITION BY HASH ( MONTH(created_date)) SUBPARTITIONS 2 (PARTITION p2007 VALUES LESS THAN (2008) ENGINE = InnoDB, PARTITION p2008 VALUES LESS THAN (2009) ENGINE = InnoDB ) */ {code} Phase 4/7: Running 'mysql_fix_privilege_tables' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' FATAL ERROR: Upgrade failed After {code:sql} truncate mysql.innodb_table_stats; {code} mysql_upgrade runs fine. |
{code:sql} CREATE TABLE `extralongname_extralongname_extralongname_extralongname_ext` ( `id` int(10) unsigned NOT NULL, `created_date` date NOT NULL DEFAULT '1970-01-01' COMMENT 'DATE(created), for index & partitions', `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`created`,`id`,`created_date`) ) ENGINE=InnoDB STATS_PERSISTENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC /*!50100 PARTITION BY RANGE ( YEAR(created_date)) SUBPARTITION BY HASH ( MONTH(created_date)) SUBPARTITIONS 2 (PARTITION p2007 VALUES LESS THAN (2008) ENGINE = InnoDB, PARTITION p2008 VALUES LESS THAN (2009) ENGINE = InnoDB ) */ {code} {noformat} Phase 4/7: Running 'mysql_fix_privilege_tables' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' FATAL ERROR: Upgrade failed {noformat} After {code:sql} truncate mysql.innodb_table_stats; {code} mysql_upgrade runs fine. |
Labels | upstream |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Remote Link | This issue links to " related in mysql 5.7 (Web Link)" [ 28003 ] |
Remote Link | This issue links to " related in mysql 5.7 (Web Link)" [ 28003 ] |
Remote Link | This issue links to "mysql 5.7 (Web Link)" [ 28004 ] |
Remote Link | This issue links to "mysql 5.7 (Web Link)" [ 28004 ] |
Remote Link | This issue links to "Bug #86926 mysql 5.7 (Web Link)" [ 28005 ] |
Assignee | Alice Sherepa [ alice ] | Sergei Golubchik [ serg ] |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.2 [ 14601 ] |
Description |
{code:sql} CREATE TABLE `extralongname_extralongname_extralongname_extralongname_ext` ( `id` int(10) unsigned NOT NULL, `created_date` date NOT NULL DEFAULT '1970-01-01' COMMENT 'DATE(created), for index & partitions', `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`created`,`id`,`created_date`) ) ENGINE=InnoDB STATS_PERSISTENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC /*!50100 PARTITION BY RANGE ( YEAR(created_date)) SUBPARTITION BY HASH ( MONTH(created_date)) SUBPARTITIONS 2 (PARTITION p2007 VALUES LESS THAN (2008) ENGINE = InnoDB, PARTITION p2008 VALUES LESS THAN (2009) ENGINE = InnoDB ) */ {code} {noformat} Phase 4/7: Running 'mysql_fix_privilege_tables' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' FATAL ERROR: Upgrade failed {noformat} After {code:sql} truncate mysql.innodb_table_stats; {code} mysql_upgrade runs fine. |
{code:sql}
CREATE TABLE `extralongname_extralongname_extralongname_extralongname_ext` ( `id` int(10) unsigned NOT NULL, `created_date` date NOT NULL DEFAULT '1970-01-01' COMMENT 'DATE(created), for index & partitions', `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`created`,`id`,`created_date`) ) ENGINE=InnoDB STATS_PERSISTENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC /*!50100 PARTITION BY RANGE ( YEAR(created_date)) SUBPARTITION BY HASH ( MONTH(created_date)) SUBPARTITIONS 2 (PARTITION p2007 VALUES LESS THAN (2008) ENGINE = InnoDB, PARTITION p2008 VALUES LESS THAN (2009) ENGINE = InnoDB ) */ {code} {noformat} Phase 4/7: Running 'mysql_fix_privilege_tables' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' ERROR 1062 (23000) Duplicate entry 'extralongname_extralongname_extralongname_extralongname_ext#P#p2' for key 'PRIMARY' FATAL ERROR: Upgrade failed {noformat} After {code:sql} truncate mysql.innodb_table_stats; {code} mysql_upgrade runs fine. |
Link | This issue is caused by MDEV-13360 [ MDEV-13360 ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Labels | upstream |
Labels | upstream |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Fix Version/s | 10.0.32 [ 22504 ] | |
Fix Version/s | 10.1.26 [ 22553 ] | |
Fix Version/s | 10.2.8 [ 22544 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 81599 ] | MariaDB v4 [ 152452 ] |
Zendesk Related Tickets | 164082 |