config root man

Current Path : /usr/opt/mysql57/mysql-test/suite/innodb/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/opt/mysql57/mysql-test/suite/innodb/r/innodb_rename_index_err.result

CREATE TABLE t (c1 INT, c2 INT, KEY i2 (c2)) ENGINE=INNODB;
SET DEBUG='+d,ib_rename_index_fail1';
ALTER TABLE t RENAME INDEX i2 to x, ALGORITHM=INPLACE;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
SET DEBUG='-d,ib_rename_index_fail1';
SET DEBUG='+d,ib_rename_index_fail2';
ALTER TABLE t RENAME INDEX i2 to x, ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE;
Warnings:
Warning	1088	Error updating stats for table 't' after table rebuild: Tablespace deleted or being deleted
SET DEBUG='-d,ib_rename_index_fail2';
SELECT index_name, stat_description
FROM mysql.innodb_index_stats
WHERE table_name = 't' AND stat_name LIKE 'n_diff%'
ORDER BY 1, 2;
index_name	stat_description
GEN_CLUST_INDEX	DB_ROW_ID
x	c2
x	c2,DB_ROW_ID
SET DEBUG='+d,ib_rename_index_fail3';
ALTER TABLE t RENAME INDEX x to y, ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE;
Warnings:
Warning	1088	Deleting persistent statistics for rebuilt table 't' in InnoDB failed: Unable to delete statistics for table test.t: Deadlock. They can be deleted later using DELETE FROM mysql.innodb_index_stats WHERE database_name = 'test' AND table_name = 't'; DELETE FROM mysql.innodb_table_stats WHERE database_name = 'test' AND table_name = 't';
SET DEBUG='-d,ib_rename_index_fail3';
SELECT index_name, stat_description
FROM mysql.innodb_index_stats
WHERE table_name = 't' AND stat_name LIKE 'n_diff%'
ORDER BY 1, 2;
index_name	stat_description
GEN_CLUST_INDEX	DB_ROW_ID
x	c2
x	c2,DB_ROW_ID
y	c2
y	c2,DB_ROW_ID
DROP TABLE t;
CREATE TABLE t (a INT, INDEX i1 (a)) ENGINE=INNODB;
DROP TABLE t;
CREATE TABLE t (a INT) ENGINE=INNODB;
SHOW CREATE TABLE t;
Table	Create Table
t	CREATE TABLE `t` (
  `a` int(11) DEFAULT NULL,
  KEY `i1` (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
ALTER TABLE t RENAME INDEX i1 TO i2;
ERROR 42000: Key 'i1' doesn't exist in table 'test/t'
DROP TABLE t;

Man Man