15
15
CREATE TABLE t1(a int, key (a)) key_block_size=1024;
16
16
INSERT INTO t1 VALUES (1), (2);
17
--exec $MYSQL_DUMP --skip-create --skip-comments -X test t1
17
--exec $DRIZZLE_DUMP --skip-create --skip-comments -X test t1
24
24
CREATE TABLE t1 (a decimal(64, 20));
25
25
INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
26
26
("0987654321098765432109876543210987654321");
27
--exec $MYSQL_DUMP --compact test t1
27
--exec $DRIZZLE_DUMP --compact test t1
34
34
CREATE TABLE t1 (`a"b"` char(2));
35
35
INSERT INTO t1 VALUES ("1\""), ("\"2");
36
--exec $MYSQL_DUMP --compact --skip-create -X test t1
36
--exec $DRIZZLE_DUMP --compact --skip-create -X test t1
44
44
CREATE TABLE t1 (a VARCHAR(255)) DEFAULT CHARSET koi8r;
45
45
INSERT INTO t1 VALUES (_koi8r x'C1C2C3C4C5'), (NULL);
46
--exec $MYSQL_DUMP --skip-comments --skip-extended-insert test t1
46
--exec $DRIZZLE_DUMP --skip-comments --skip-extended-insert test t1
53
53
CREATE TABLE t1 (a int) ENGINE=MYISAM;
54
54
INSERT INTO t1 VALUES (1), (2);
55
--exec $MYSQL_DUMP --skip-comments --compatible=mysql40 test t1
56
--exec $MYSQL_DUMP --skip-comments --compatible=mysql323 test t1
55
--exec $DRIZZLE_DUMP --skip-comments --compatible=mysql40 test t1
56
--exec $DRIZZLE_DUMP --skip-comments --compatible=mysql323 test t1
71
71
#create table t1(a int);
72
72
#insert into t1 values (1),(2),(3);
73
#--exec $MYSQL_DUMP --skip-comments --tab=$MYSQLTEST_VARDIR/tmp/ test
73
#--exec $DRIZZLE_DUMP --skip-comments --tab=$MYSQLTEST_VARDIR/tmp/ test
74
74
#--cat_file $MYSQLTEST_VARDIR/tmp/t1.sql
75
75
#--cat_file $MYSQLTEST_VARDIR/tmp/t1.txt
76
76
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
77
77
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
78
#--exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
78
#--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
79
79
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
80
80
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
84
84
--echo # Bug #6101: create database problem
87
--exec $MYSQL_DUMP --skip-comments --databases test
87
--exec $DRIZZLE_DUMP --skip-comments --databases test
89
89
create database mysqldump_test_db character set latin2 collate latin2_bin;
90
--exec $MYSQL_DUMP --skip-comments --databases mysqldump_test_db
90
--exec $DRIZZLE_DUMP --skip-comments --databases mysqldump_test_db
91
91
drop database mysqldump_test_db;
100
100
CREATE TABLE t1 (a CHAR(10));
101
101
INSERT INTO t1 VALUES (_latin1 '����');
102
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments test t1
102
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments test t1
105
105
--echo # Bug#8063: make test mysqldump [ fail ]
109
109
--echo # checking that "mysqldump" is compiled with "latin1"
112
#--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 test t1
113
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 --default-character-set=cp850 test t1
114
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=cp850 --compatible=mysql323 test t1
115
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test t1
112
#--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 test t1
113
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 --default-character-set=cp850 test t1
114
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=cp850 --compatible=mysql323 test t1
115
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test t1
123
123
CREATE TABLE t2 (a int);
124
124
INSERT INTO t1 VALUES (1),(2),(3);
125
125
INSERT INTO t2 VALUES (4),(5),(6);
126
--exec $MYSQL_DUMP --skip-comments --ignore-table=test.t1 test
126
--exec $DRIZZLE_DUMP --skip-comments --ignore-table=test.t1 test
134
134
CREATE TABLE t1 (`b` blob);
135
135
INSERT INTO `t1` VALUES (0x602010000280100005E71A);
136
--exec $MYSQL_DUMP --skip-extended-insert --hex-blob test --skip-comments t1
136
--exec $DRIZZLE_DUMP --skip-extended-insert --hex-blob test --skip-comments t1
143
143
CREATE TABLE t1 (a int);
144
144
INSERT INTO t1 VALUES (1),(2),(3);
145
145
INSERT INTO t1 VALUES (4),(5),(6);
146
--exec $MYSQL_DUMP --skip-comments --insert-ignore test t1
147
--exec $MYSQL_DUMP --skip-comments --insert-ignore --delayed-insert test t1
146
--exec $DRIZZLE_DUMP --skip-comments --insert-ignore test t1
147
--exec $DRIZZLE_DUMP --skip-comments --insert-ignore --delayed-insert test t1
483
483
F_6faa8040da20ef399b63a72d0e4ab575 int,
484
484
F_fe73f687e5bc5280214e0486b273a5f9 int);
485
485
insert into t1 (F_8d3bba7425e7c98c50f52ca1b52d3735) values (1);
486
--exec $MYSQL_DUMP --skip-comments -c test
486
--exec $DRIZZLE_DUMP --skip-comments -c test
505
505
CREATE TABLE t2 ( a INT );
506
506
INSERT INTO t1 VALUES (1), (2);
507
507
INSERT INTO t2 VALUES (1), (2);
508
--exec $MYSQL_DUMP --skip-comments --no-data mysqldump_test_db
509
--exec $MYSQL_DUMP --skip-comments --no-data mysqldump_test_db t1 t2
510
--exec $MYSQL_DUMP --skip-comments --skip-create --xml --no-data mysqldump_test_db
511
--exec $MYSQL_DUMP --skip-comments --skip-create --xml --no-data mysqldump_test_db t1 t2
508
--exec $DRIZZLE_DUMP --skip-comments --no-data mysqldump_test_db
509
--exec $DRIZZLE_DUMP --skip-comments --no-data mysqldump_test_db t1 t2
510
--exec $DRIZZLE_DUMP --skip-comments --skip-create --xml --no-data mysqldump_test_db
511
--exec $DRIZZLE_DUMP --skip-comments --skip-create --xml --no-data mysqldump_test_db t1 t2
512
512
DROP TABLE t1, t2;
513
513
DROP DATABASE mysqldump_test_db;
527
527
select '------ Testing with illegal table names ------' as test_sequence ;
528
528
--enable_query_log
530
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "\d-2-1.sql" 2>&1
533
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "\t1" 2>&1
536
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "\\t1" 2>&1
530
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "\d-2-1.sql" 2>&1
533
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "\t1" 2>&1
536
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "\\t1" 2>&1
539
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "\\\\t1" 2>&1
542
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "t\1" 2>&1
545
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "t\\1" 2>&1
548
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "t/1" 2>&1
551
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1
554
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T%1" 2>&1
557
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T'1" 2>&1
560
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1
563
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T_" 2>&1
539
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "\\\\t1" 2>&1
542
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "t\1" 2>&1
545
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "t\\1" 2>&1
548
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "t/1" 2>&1
551
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1
554
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T%1" 2>&1
557
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T'1" 2>&1
560
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1
563
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T_" 2>&1
565
565
--disable_query_log
566
566
select '------ Testing with illegal database names ------' as test_sequence ;
567
567
--enable_query_log
569
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_d 2>&1
569
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_d 2>&1
572
--exec $MYSQL_DUMP --compact --skip-comments "mysqld\ump_test_db" 2>&1
572
--exec $DRIZZLE_DUMP --compact --skip-comments "mysqld\ump_test_db" 2>&1
574
574
drop table t1, t2, t3;
575
575
drop database mysqldump_test_db;
585
585
a int(10), b varchar(30), c datetime, d blob, e text);
586
586
insert into t1 values (NULL), (10), (20);
587
587
insert into t2 (a, b) values (NULL, NULL),(10, NULL),(NULL, "twenty"),(30, "thirty");
588
--exec $MYSQL_DUMP --skip-comments --xml --no-create-info test
588
--exec $DRIZZLE_DUMP --skip-comments --xml --no-create-info test
589
589
drop table t1, t2;
595
595
create table t1 (a text character set utf8, b text character set latin1);
596
596
insert t1 values (0x4F736E616272C3BC636B, 0x4BF66C6E);
597
597
select * from t1;
598
--exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
598
--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
599
599
--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t1.sql
600
--exec $MYSQL_IMPORT test $MYSQLTEST_VARDIR/tmp/t1.txt
600
--exec $DRIZZLE_IMPORT test $MYSQLTEST_VARDIR/tmp/t1.txt
601
601
select * from t1;
606
606
--echo # BUG#15328 Segmentation fault occured if my.cnf is invalid for escape sequence
609
--exec $MYSQL_MY_PRINT_DEFAULTS --config-file=$MYSQL_TEST_DIR/std_data/bug15328.cnf mysqldump
609
--exec $DRIZZLE_MY_PRINT_DEFAULTS --config-file=$DRIZZLE_TEST_DIR/std_data/bug15328.cnf mysqldump
612
612
--echo # BUG #19025 mysqldump doesn't correctly dump "auto_increment = [int]"
672
672
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
673
673
insert into t1 values (0815, 4711, 2006);
675
--exec $MYSQL_DUMP --skip-comments --compatible=ansi --order-by-primary test t1
676
--exec $MYSQL_DUMP --skip-comments --order-by-primary test t1
675
--exec $DRIZZLE_DUMP --skip-comments --compatible=ansi --order-by-primary test t1
676
--exec $DRIZZLE_DUMP --skip-comments --order-by-primary test t1
678
678
--enable_warnings
687
687
--echo # --skip-dump-date:
688
688
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*//
689
--exec $MYSQL_DUMP --skip-dump-date test
689
--exec $DRIZZLE_DUMP --skip-dump-date test
691
691
--echo # --dump-date:
692
692
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/
693
--exec $MYSQL_DUMP --dump-date test
693
--exec $DRIZZLE_DUMP --dump-date test
695
695
--echo # --dump-date (default):
696
696
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/
697
--exec $MYSQL_DUMP test
697
--exec $DRIZZLE_DUMP test
700
700
--echo # End of 5.0 tests
710
710
INSERT INTO t1 VALUES (1,1);
711
711
INSERT INTO t1 VALUES (2,3);
712
712
INSERT INTO t1 VALUES (3,4), (4,5);
713
--exec $MYSQL_DUMP --replace --skip-comments test t1
713
--exec $DRIZZLE_DUMP --replace --skip-comments test t1
728
728
insert t2 values ("a more perfect", "union");
729
729
select * from t1;
730
730
select * from t2;
731
--exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
731
--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
732
732
--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t1.sql
733
733
--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t2.sql
734
734
# The first load tests the pausing code
735
--exec $MYSQL_IMPORT --use-threads=1 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt
735
--exec $DRIZZLE_IMPORT --use-threads=1 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt
736
736
# Now we test with multiple threads!
737
--exec $MYSQL_IMPORT --silent --use-threads=5 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt
737
--exec $DRIZZLE_IMPORT --silent --use-threads=5 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt
738
738
select * from t1;
739
739
select * from t2;
740
740
# Now we test with multiple threads, but less threads than files.
741
741
create table words(a varchar(255));
742
742
create table words2(b varchar(255));
743
--exec $MYSQL_IMPORT --silent --use-threads=2 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt $MYSQLTEST_VARDIR/std_data_ln/words.dat $MYSQLTEST_VARDIR/std_data_ln/words2.dat
743
--exec $DRIZZLE_IMPORT --silent --use-threads=2 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt $MYSQLTEST_VARDIR/std_data_ln/words.dat $MYSQLTEST_VARDIR/std_data_ln/words2.dat
744
744
select * from t1;
745
745
select * from t2;
746
746
select * from words;
750
750
drop table words;
751
751
--replace_regex /.*mysqlimport(\.exe)*/mysql-import/
753
--exec $MYSQL_IMPORT --silent --use-threads=2 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt $MYSQLTEST_VARDIR/std_data_ln/words.dat $MYSQLTEST_VARDIR/std_data_ln/words2.dat 2>&1
753
--exec $DRIZZLE_IMPORT --silent --use-threads=2 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt $MYSQLTEST_VARDIR/std_data_ln/words.dat $MYSQLTEST_VARDIR/std_data_ln/words2.dat 2>&1
765
765
create database `test-database`;
766
766
use `test-database`;
767
767
create table test (a int);
768
--exec $MYSQL_DUMP --compact --opt --quote-names test-database
768
--exec $DRIZZLE_DUMP --compact --opt --quote-names test-database
769
769
drop database `test-database`;