Debian Codegraph @

mysql-test/suite/ndb/t/ndbinfo_dump.test

raw
1 --source include/have_ndb.inc
2
3 USE ndbinfo;
4
5 #
6 # Bug#54316 mysqldump and restore ndbinfo fails
7 # - caused by "blocks" and "config_params" table being truncated
8 # when restoriung a dump without any data. Hack mysqldump
9 # to not include ndbinfo database in --all-databases or
10 # when explicitly given on command line
11 #
12 let $dump_file = $MYSQLTEST_VARDIR/tmp/ndbinfo_dump.sql;
13 select count(*) from blocks;
14 --exec $MYSQL_DUMP --no-data --databases test ndbinfo > $dump_file
15 --exec $MYSQL test < $dump_file
16 select count(*) from blocks;
17 --remove_file $dump_file