@@ -1426,8 +1426,6 @@ insert into u1 values (4);
1426
1426
create view v1 (c1) as select * from t1;
1427
1427
1428
1428
# Backup should not fail for Bug#21527. Flush priviliges test begins.
1429
- # TODO (Bug#22655287): mysqldump should skip the innodb_*_stats tables.
1430
- # Restoring the dump will cause errors (see below).
1431
1429
--exec $MYSQL_DUMP --skip-comments --add-drop-table --flush-privileges --ignore-table=mysql.general_log --ignore-table=mysql.slow_log --databases mysqldump_myDB mysql > $MYSQLTEST_VARDIR/tmp/bug21527.sql
1432
1430
1433
1431
# Clean up
@@ -1446,11 +1444,7 @@ flush privileges;
1446
1444
--echo # Restore. Flush Privileges test ends.
1447
1445
--echo #
1448
1446
1449
- # TODO (Bug#22655287): mysqldump should skip the innodb_*_stats tables.
1450
- # Restoring the dump will cause errors. Using '--force' will ignore
1451
- # errors and allow the dump to be restored. Fixing Bug#22655287 should
1452
- # allow the command below to succeed without '--force'.
1453
- --exec $MYSQL --force < $MYSQLTEST_VARDIR/tmp/bug21527.sql
1447
+ --exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug21527.sql
1454
1448
1455
1449
# Do as a user
1456
1450
connection user1;
@@ -1812,8 +1806,6 @@ drop database mysqldump_test_db;
1812
1806
#
1813
1807
# Bug#26121 mysqldump includes LOCK TABLES general_log WRITE
1814
1808
#
1815
- # TODO: Allow dump/restore of innodb_index_stats/innodb_table_stats See
1816
- # Bug#22655287
1817
1809
--exec $MYSQL_DUMP --all-databases > $MYSQLTEST_VARDIR/tmp/bug26121.sql
1818
1810
# take a backup of sys db.
1819
1811
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug26121.sql
@@ -1885,9 +1877,7 @@ DROP DATABASE mysqldump_test_db;
1885
1877
USE test;
1886
1878
CREATE event e29938 ON SCHEDULE AT '2035-12-31 20:01:23' DO SET @bug29938=29938;
1887
1879
SHOW EVENTS;
1888
- # TODO: Allow dump/restore of innodb_index_stats/innodb_table_stats
1889
- # See Bug#22655287
1890
- --exec $MYSQL_DUMP --skip-events --all-databases --ignore-table=mysql.innodb_index_stats --ignore-table=mysql.innodb_table_stats > $MYSQLTEST_VARDIR/tmp/bug29938.sql
1880
+ --exec $MYSQL_DUMP --skip-events --all-databases > $MYSQLTEST_VARDIR/tmp/bug29938.sql
1891
1881
1892
1882
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug29938.sql
1893
1883
SHOW EVENTS;
@@ -2484,9 +2474,7 @@ while ($colnum)
2484
2474
}
2485
2475
--eval CREATE VIEW v1 AS SELECT $str
2486
2476
2487
- # TODO: Allow dump/restore of innodb_index_stats/innodb_table_stats
2488
- # See Bug#22655287
2489
- --exec $MYSQL_DUMP -uroot --all-databases --ignore-table=mysql.innodb_index_stats --ignore-table=mysql.innodb_table_stats > $MYSQLTEST_VARDIR/tmp/bug17477959.sql
2477
+ --exec $MYSQL_DUMP -uroot --all-databases > $MYSQLTEST_VARDIR/tmp/bug17477959.sql
2490
2478
#Reload of the dump fails without the patch
2491
2479
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug17477959.sql
2492
2480
#Cleanup.
@@ -2499,9 +2487,7 @@ DROP VIEW v1;
2499
2487
CREATE DATABASE `a\\k`;
2500
2488
CREATE TABLE `a\\k`.t1(i INT);
2501
2489
SHOW TABLES FROM `a\\k`;
2502
- # TODO: Allow dump/restore of innodb_index_stats/innodb_table_stats
2503
- # See Bug#22655287
2504
- --exec $MYSQL_DUMP -uroot --all-databases --ignore-table=mysql.innodb_index_stats --ignore-table=mysql.innodb_table_stats > $MYSQLTEST_VARDIR/tmp/bug18109728.sql
2490
+ --exec $MYSQL_DUMP -uroot --all-databases > $MYSQLTEST_VARDIR/tmp/bug18109728.sql
2505
2491
DROP DATABASE `a\\k`;
2506
2492
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug18109728.sql
2507
2493
SHOW TABLES FROM `a\\k`;
@@ -2626,9 +2612,7 @@ DROP DATABASE dump_generated;
2626
2612
# take backup of sys schema
2627
2613
--exec $MYSQL_DUMP --databases sys --routines > $MYSQLTEST_VARDIR/tmp/sys.sql
2628
2614
# this will not dump sys schema and sys schema routines.
2629
- # TODO: Allow dump/restore of innodb_index_stats/innodb_table_stats
2630
- # See Bug#22655287
2631
- --exec $MYSQL_DUMP --all-databases --ignore-table=mysql.innodb_index_stats --ignore-table=mysql.innodb_table_stats > $MYSQLTEST_VARDIR/tmp/bug21549860.sql
2615
+ --exec $MYSQL_DUMP --all-databases > $MYSQLTEST_VARDIR/tmp/bug21549860.sql
2632
2616
SELECT COUNT(*) FROM INFORMATION_SCHEMA.routines WHERE routine_schema = 'sys';
2633
2617
DROP DATABASE sys;
2634
2618
SELECT COUNT(*) FROM INFORMATION_SCHEMA.routines WHERE routine_schema = 'sys';
0 commit comments