rpl_ddl.result 29.2 KB
Newer Older
1 2 3 4 5 6
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
7 8

-------- switch to master -------
9
SET AUTOCOMMIT = 1;
10 11 12 13 14
DROP DATABASE IF EXISTS mysqltest1;
DROP DATABASE IF EXISTS mysqltest2;
DROP DATABASE IF EXISTS mysqltest3;
CREATE DATABASE mysqltest1;
CREATE DATABASE mysqltest2;
15
CREATE TABLE mysqltest1.t1 (f1 BIGINT) ENGINE=InnoDB;
16
INSERT INTO mysqltest1.t1 SET f1= 0;
17 18 19 20 21
CREATE TABLE mysqltest1.t2 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t3 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t4 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t5 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t6 (f1 BIGINT) ENGINE=InnoDB;
22
CREATE INDEX my_idx6 ON mysqltest1.t6(f1);
23
CREATE TABLE mysqltest1.t7 (f1 BIGINT) ENGINE=InnoDB;
24
INSERT INTO mysqltest1.t7 SET f1= 0;
25 26 27 28 29 30 31 32 33 34 35 36 37
CREATE TABLE mysqltest1.t8 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t9 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t10 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t11 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t12 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t13 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t14 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t15 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t16 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t17 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t18 (f1 BIGINT) ENGINE=InnoDB;
CREATE TABLE mysqltest1.t19 (f1 BIGINT) ENGINE=InnoDB;
CREATE TEMPORARY TABLE mysqltest1.t23 (f1 BIGINT) ENGINE=MEMORY;
38
SET AUTOCOMMIT = 0;
39
use mysqltest1;
40 41

-------- switch to slave --------
42
SET AUTOCOMMIT = 1;
43
use mysqltest1;
44 45 46

-------- switch to master -------

47
######## SELECT 1 ########
48 49 50 51 52 53 54 55 56 57 58 59 60

-------- switch to master -------
INSERT INTO t1 SET f1= 0 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
0

-------- switch to master -------
61 62 63
SELECT 1;
1
1
64 65 66 67 68 69 70
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
71
0
72 73 74 75 76

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
0

TEST-INFO: MASTER: The INSERT is not committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
0

TEST-INFO: SLAVE:  The INSERT is not committed (Succeeded)

-------- switch to master -------

######## SELECT COUNT(*) FROM t1 ########

-------- switch to master -------
INSERT INTO t1 SET f1= 0 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
96 97
1

98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
0

-------- switch to master -------
SELECT COUNT(*) FROM t1;
COUNT(*)
2
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
0

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
0

TEST-INFO: MASTER: The INSERT is not committed (Succeeded)
123 124 125 126

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
127 128 129 130 131 132 133 134 135 136 137 138
0

TEST-INFO: SLAVE:  The INSERT is not committed (Succeeded)

-------- switch to master -------

######## COMMIT ########

-------- switch to master -------
INSERT INTO t1 SET f1= 0 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
139 140
1

141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
0

-------- switch to master -------
COMMIT;
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
1
156 157

-------- switch to master -------
158 159 160 161 162 163
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
1

TEST-INFO: MASTER: The INSERT is committed (Succeeded)
164 165

-------- switch to slave --------
166 167 168 169 170
SELECT MAX(f1) FROM t1;
MAX(f1)
1

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
171 172 173

-------- switch to master -------

174
######## ROLLBACK ########
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203

-------- switch to master -------
INSERT INTO t1 SET f1= 1 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
2

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
1

204
TEST-INFO: MASTER: The INSERT is not committed (Succeeded)
205 206 207 208 209 210

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
1

211
TEST-INFO: SLAVE:  The INSERT is not committed (Succeeded)
212 213 214

-------- switch to master -------

215
######## SET AUTOCOMMIT=1 ########
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244

-------- switch to master -------
INSERT INTO t1 SET f1= 1 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
2

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
1

-------- switch to master -------
SET AUTOCOMMIT=1;
SELECT MAX(f1) FROM t1;
MAX(f1)
2

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
2

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
2

245
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
246 247 248 249 250 251

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
2

252
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
253 254 255 256

-------- switch to master -------
SET AUTOCOMMIT=0;

257
######## START TRANSACTION ########
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286

-------- switch to master -------
INSERT INTO t1 SET f1= 2 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
3

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
2

-------- switch to master -------
START TRANSACTION;
SELECT MAX(f1) FROM t1;
MAX(f1)
3

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
3

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
3

287
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
288 289 290 291 292 293

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
3

294
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
295 296 297

-------- switch to master -------

298
######## BEGIN ########
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327

-------- switch to master -------
INSERT INTO t1 SET f1= 3 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
4

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
3

-------- switch to master -------
BEGIN;
SELECT MAX(f1) FROM t1;
MAX(f1)
4

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
4

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
4

328
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
329 330 331 332 333 334

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
4

335
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
336 337 338

-------- switch to master -------

339
######## DROP TABLE mysqltest1.t2 ########
340 341 342 343 344 345 346 347 348 349 350 351 352

-------- switch to master -------
INSERT INTO t1 SET f1= 4 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
5

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
4

-------- switch to master -------
353
DROP TABLE mysqltest1.t2;
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368
SELECT MAX(f1) FROM t1;
MAX(f1)
5

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
5

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
5

369
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
370 371 372 373 374 375

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
5

376
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
377 378 379

-------- switch to master -------
SHOW TABLES LIKE 't2';
380
Tables_in_mysqltest1 (t2)
381 382 383

-------- switch to slave --------
SHOW TABLES LIKE 't2';
384
Tables_in_mysqltest1 (t2)
385 386 387

-------- switch to master -------

388
######## DROP TEMPORARY TABLE mysqltest1.t23 ########
389 390 391 392 393 394 395 396 397 398 399 400 401

-------- switch to master -------
INSERT INTO t1 SET f1= 5 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
6

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
5

-------- switch to master -------
402
DROP TEMPORARY TABLE mysqltest1.t23;
403 404 405 406 407 408 409
SELECT MAX(f1) FROM t1;
MAX(f1)
6

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
410
5
411 412 413 414 415

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
416
5
417

418
TEST-INFO: MASTER: The INSERT is not committed (Succeeded)
419 420 421 422

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
423
5
424

425
TEST-INFO: SLAVE:  The INSERT is not committed (Succeeded)
426 427 428 429 430 431 432 433 434 435 436

-------- switch to master -------
SHOW TABLES LIKE 't23';
Tables_in_mysqltest1 (t23)

-------- switch to slave --------
SHOW TABLES LIKE 't23';
Tables_in_mysqltest1 (t23)

-------- switch to master -------

437
######## RENAME TABLE mysqltest1.t3 to mysqltest1.t20 ########
438 439 440 441 442 443 444 445 446 447

-------- switch to master -------
INSERT INTO t1 SET f1= 5 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
6

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
448
5
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474

-------- switch to master -------
RENAME TABLE mysqltest1.t3 to mysqltest1.t20;
SELECT MAX(f1) FROM t1;
MAX(f1)
6

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
6

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
6

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
6

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
475 476 477

-------- switch to master -------
SHOW TABLES LIKE 't20';
478
Tables_in_mysqltest1 (t20)
479 480 481 482
t20

-------- switch to slave --------
SHOW TABLES LIKE 't20';
483
Tables_in_mysqltest1 (t20)
484 485 486 487
t20

-------- switch to master -------

488
######## ALTER TABLE mysqltest1.t4 ADD column f2 BIGINT ########
489 490 491 492 493 494 495 496 497 498 499 500 501

-------- switch to master -------
INSERT INTO t1 SET f1= 6 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
7

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
6

-------- switch to master -------
502
ALTER TABLE mysqltest1.t4 ADD column f2 BIGINT;
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
SELECT MAX(f1) FROM t1;
MAX(f1)
7

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
7

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
7

518
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
519 520 521 522 523 524

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
7

525
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
526 527

-------- switch to master -------
528
describe mysqltest1.t4;
529 530 531 532 533
Field	Type	Null	Key	Default	Extra
f1	bigint(20)	YES		NULL	
f2	bigint(20)	YES		NULL	

-------- switch to slave --------
534
describe mysqltest1.t4;
535 536 537 538 539 540
Field	Type	Null	Key	Default	Extra
f1	bigint(20)	YES		NULL	
f2	bigint(20)	YES		NULL	

-------- switch to master -------

541
######## CREATE TABLE mysqltest1.t21 (f1 BIGINT) ENGINE= InnoDB ########
542 543 544 545 546 547 548 549 550 551 552 553 554

-------- switch to master -------
INSERT INTO t1 SET f1= 7 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
8

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
7

-------- switch to master -------
555
CREATE TABLE mysqltest1.t21 (f1 BIGINT) ENGINE= InnoDB;
556 557 558 559 560 561 562 563 564 565 566 567 568 569 570
SELECT MAX(f1) FROM t1;
MAX(f1)
8

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
8

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
8

571
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
572 573 574 575 576 577

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
8

578
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
579 580 581

-------- switch to master -------

582
######## CREATE TEMPORARY TABLE mysqltest1.t22 (f1 BIGINT) ENGINE=MEMORY ########
583 584 585 586 587 588 589 590 591 592 593 594 595

-------- switch to master -------
INSERT INTO t1 SET f1= 8 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
9

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
8

-------- switch to master -------
596
CREATE TEMPORARY TABLE mysqltest1.t22 (f1 BIGINT) ENGINE=MEMORY;
597 598 599
SELECT MAX(f1) FROM t1;
MAX(f1)
9
600 601 602 603 604 605 606 607 608 609 610 611 612

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
8

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
8

TEST-INFO: MASTER: The INSERT is not committed (Succeeded)
613 614 615 616

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
617
8
618

619
TEST-INFO: SLAVE:  The INSERT is not committed (Succeeded)
620 621 622

-------- switch to master -------

623
######## TRUNCATE TABLE mysqltest1.t7 ########
624 625 626 627 628 629 630 631 632 633

-------- switch to master -------
INSERT INTO t1 SET f1= 8 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
9

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
634
8
635 636 637 638 639 640 641 642 643 644 645

-------- switch to master -------
TRUNCATE TABLE mysqltest1.t7;
SELECT MAX(f1) FROM t1;
MAX(f1)
9

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
9
646 647 648 649 650 651 652

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
9

653
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
654 655 656 657 658 659

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
9

660
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
661 662

-------- switch to master -------
663
SELECT * FROM mysqltest1.t7;
664
f1
665

666
-------- switch to slave --------
667
SELECT * FROM mysqltest1.t7;
668
f1
669

670 671
-------- switch to master -------

672
######## LOCK TABLES mysqltest1.t1 WRITE, mysqltest1.t8 READ ########
673 674 675 676 677 678 679 680 681 682 683 684 685

-------- switch to master -------
INSERT INTO t1 SET f1= 9 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
9

-------- switch to master -------
686
LOCK TABLES mysqltest1.t1 WRITE, mysqltest1.t8 READ;
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
10

702
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
703 704 705 706 707 708

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

709
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
710 711 712 713

-------- switch to master -------
UNLOCK TABLES;

714
######## UNLOCK TABLES ########
715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731

-------- switch to master -------
INSERT INTO t1 SET f1= 10 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
11

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to master -------
UNLOCK TABLES;
SELECT MAX(f1) FROM t1;
MAX(f1)
11
732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
10

TEST-INFO: MASTER: The INSERT is not committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

TEST-INFO: SLAVE:  The INSERT is not committed (Succeeded)

-------- switch to master -------
LOCK TABLES mysqltest1.t1 READ;

756
######## UNLOCK TABLES ########
757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774

-------- switch to master -------
INSERT INTO t1 SET f1= 10 + 1;
ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to master -------
UNLOCK TABLES;
SELECT MAX(f1) FROM t1;
MAX(f1)
10
775 776 777 778

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798
10

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
10

TEST-INFO: MASTER: The INSERT is not committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

TEST-INFO: SLAVE:  The INSERT is not committed (Succeeded)

-------- switch to master -------
LOCK TABLES mysqltest1.t1 WRITE, mysqltest1.t8 READ;

799
######## UNLOCK TABLES ########
800 801 802 803 804

-------- switch to master -------
INSERT INTO t1 SET f1= 10 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
805
11
806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
10

-------- switch to master -------
UNLOCK TABLES;
SELECT MAX(f1) FROM t1;
MAX(f1)
11

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
11
822 823 824 825 826 827 828

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
11

829
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
830 831 832 833 834 835

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
11

836
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
837 838 839

-------- switch to master -------

840
######## DROP INDEX my_idx6 ON mysqltest1.t6 ########
841 842 843 844 845 846 847 848 849 850 851 852 853

-------- switch to master -------
INSERT INTO t1 SET f1= 11 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
12

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
11

-------- switch to master -------
854
DROP INDEX my_idx6 ON mysqltest1.t6;
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869
SELECT MAX(f1) FROM t1;
MAX(f1)
12

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
12

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
12

870
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
871 872 873 874 875 876

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
12

877
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
878 879

-------- switch to master -------
880
SHOW INDEX FROM mysqltest1.t6;
881 882 883
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment

-------- switch to slave --------
884
SHOW INDEX FROM mysqltest1.t6;
885 886 887 888
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment

-------- switch to master -------

889
######## CREATE INDEX my_idx5 ON mysqltest1.t5(f1) ########
890 891 892 893 894 895 896 897 898 899 900 901 902

-------- switch to master -------
INSERT INTO t1 SET f1= 12 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
13

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
12

-------- switch to master -------
903
CREATE INDEX my_idx5 ON mysqltest1.t5(f1);
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918
SELECT MAX(f1) FROM t1;
MAX(f1)
13

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
13

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
13

919
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
920 921 922 923 924 925

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
13

926
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
927 928

-------- switch to master -------
929
SHOW INDEX FROM mysqltest1.t5;
930 931 932 933
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment
t5	1	my_idx5	1	f1	A	0	NULL	NULL	YES	BTREE	

-------- switch to slave --------
934
SHOW INDEX FROM mysqltest1.t5;
935 936 937 938 939
Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment
t5	1	my_idx5	1	f1	A	NULL	NULL	NULL	YES	BTREE	

-------- switch to master -------

940
######## DROP DATABASE mysqltest2 ########
941 942 943 944 945 946 947 948 949 950 951 952 953

-------- switch to master -------
INSERT INTO t1 SET f1= 13 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
14

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
13

-------- switch to master -------
954
DROP DATABASE mysqltest2;
955 956 957 958 959 960 961 962 963 964 965 966 967 968 969
SELECT MAX(f1) FROM t1;
MAX(f1)
14

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
14

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
14

970
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
971 972 973 974 975 976

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
14

977
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
978 979

-------- switch to master -------
980 981
SHOW DATABASES LIKE "mysqltest2";
Database (mysqltest2)
982 983

-------- switch to slave --------
984 985
SHOW DATABASES LIKE "mysqltest2";
Database (mysqltest2)
986 987 988

-------- switch to master -------

989
######## CREATE DATABASE mysqltest3 ########
990 991 992 993 994 995 996 997 998 999 1000 1001 1002

-------- switch to master -------
INSERT INTO t1 SET f1= 14 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
15

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
14

-------- switch to master -------
1003
CREATE DATABASE mysqltest3;
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018
SELECT MAX(f1) FROM t1;
MAX(f1)
15

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
15

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
15

1019
TEST-INFO: MASTER: The INSERT is committed (Succeeded)
1020 1021 1022 1023 1024 1025

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
15

1026
TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)
1027 1028

-------- switch to master -------
1029 1030 1031
SHOW DATABASES LIKE "mysqltest3";
Database (mysqltest3)
mysqltest3
1032 1033

-------- switch to slave --------
1034 1035 1036
SHOW DATABASES LIKE "mysqltest3";
Database (mysqltest3)
mysqltest3
1037 1038

-------- switch to master -------
1039

1040
######## CREATE PROCEDURE p1() READS SQL DATA SELECT "this is p1" ########
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088

-------- switch to master -------
INSERT INTO t1 SET f1= 15 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
16

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
15

-------- switch to master -------
CREATE PROCEDURE p1() READS SQL DATA SELECT "this is p1";
SELECT MAX(f1) FROM t1;
MAX(f1)
16

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
16

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
16

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
16

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SHOW PROCEDURE STATUS LIKE 'p1';
Db	mysqltest1
Name	p1
Type	PROCEDURE
Definer	root@localhost
Modified	#
Created	#
Security_type	DEFINER
Comment	
1089 1090

-------- switch to slave --------
1091 1092 1093 1094
SHOW PROCEDURE STATUS LIKE 'p1';
Db	mysqltest1
Name	p1
Type	PROCEDURE
1095
Definer	root@localhost
1096 1097 1098 1099 1100
Modified	#
Created	#
Security_type	DEFINER
Comment	

1101 1102 1103
-------- switch to master -------

######## ALTER PROCEDURE p1 COMMENT "I have been altered" ########
1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151

-------- switch to master -------
INSERT INTO t1 SET f1= 16 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
17

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
16

-------- switch to master -------
ALTER PROCEDURE p1 COMMENT "I have been altered";
SELECT MAX(f1) FROM t1;
MAX(f1)
17

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
17

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
17

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
17

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SHOW PROCEDURE STATUS LIKE 'p1';
Db	mysqltest1
Name	p1
Type	PROCEDURE
Definer	root@localhost
Modified	#
Created	#
Security_type	DEFINER
Comment	I have been altered
1152 1153

-------- switch to slave --------
1154 1155 1156 1157
SHOW PROCEDURE STATUS LIKE 'p1';
Db	mysqltest1
Name	p1
Type	PROCEDURE
1158
Definer	root@localhost
1159 1160 1161 1162 1163
Modified	#
Created	#
Security_type	DEFINER
Comment	I have been altered

1164 1165 1166
-------- switch to master -------

######## DROP PROCEDURE p1 ########
1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205

-------- switch to master -------
INSERT INTO t1 SET f1= 17 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
18

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
17

-------- switch to master -------
DROP PROCEDURE p1;
SELECT MAX(f1) FROM t1;
MAX(f1)
18

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
18

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
18

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
18

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
1206
SHOW PROCEDURE STATUS LIKE 'p1';
1207 1208

-------- switch to slave --------
1209
SHOW PROCEDURE STATUS LIKE 'p1';
1210 1211

-------- switch to master -------
1212

1213
######## CREATE OR REPLACE VIEW v1 as select * from t1 ########
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256

-------- switch to master -------
INSERT INTO t1 SET f1= 18 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
19

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
18

-------- switch to master -------
CREATE OR REPLACE VIEW v1 as select * from t1;
SELECT MAX(f1) FROM t1;
MAX(f1)
19

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
19

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
19

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
19

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SHOW CREATE VIEW v1;
View	Create View
v1	CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1`

1257
-------- switch to slave --------
1258 1259 1260 1261
SHOW CREATE VIEW v1;
View	Create View
v1	CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1`

1262 1263 1264
-------- switch to master -------

######## ALTER VIEW v1 AS select f1 from t1 ########
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307

-------- switch to master -------
INSERT INTO t1 SET f1= 19 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
20

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
19

-------- switch to master -------
ALTER VIEW v1 AS select f1 from t1;
SELECT MAX(f1) FROM t1;
MAX(f1)
20

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
20

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
20

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
20

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SHOW CREATE VIEW v1;
View	Create View
v1	CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1`

1308
-------- switch to slave --------
1309 1310 1311 1312
SHOW CREATE VIEW v1;
View	Create View
v1	CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1`

1313 1314 1315
-------- switch to master -------

######## DROP VIEW IF EXISTS v1 ########
1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357

-------- switch to master -------
INSERT INTO t1 SET f1= 20 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
21

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
20

-------- switch to master -------
DROP VIEW IF EXISTS v1;
SELECT MAX(f1) FROM t1;
MAX(f1)
21

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
21

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
21

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
21

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SHOW CREATE VIEW v1;
ERROR 42S02: Table 'mysqltest1.v1' doesn't exist

1358
-------- switch to slave --------
1359 1360 1361
SHOW CREATE VIEW v1;
ERROR 42S02: Table 'mysqltest1.v1' doesn't exist

1362 1363 1364
-------- switch to master -------

######## CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 ########
1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404

-------- switch to master -------
INSERT INTO t1 SET f1= 21 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
22

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
21

-------- switch to master -------
CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1;
SELECT MAX(f1) FROM t1;
MAX(f1)
22

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
22

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
22

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
22

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SHOW TRIGGERS;
1405
Trigger	Event	Table	Statement	Timing	Created	sql_mode	Definer
1406
trg1	INSERT	t1	SET @a:=1	BEFORE	NULL		root@localhost
1407

1408
-------- switch to slave --------
1409
SHOW TRIGGERS;
1410
Trigger	Event	Table	Statement	Timing	Created	sql_mode	Definer
1411
trg1	INSERT	t1	SET @a:=1	BEFORE	NULL		root@localhost
1412

1413 1414 1415
-------- switch to master -------

######## DROP TRIGGER trg1 ########
1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455

-------- switch to master -------
INSERT INTO t1 SET f1= 22 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
23

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
22

-------- switch to master -------
DROP TRIGGER trg1;
SELECT MAX(f1) FROM t1;
MAX(f1)
23

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
23

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
23

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
23

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SHOW TRIGGERS;
1456
Trigger	Event	Table	Statement	Timing	Created	sql_mode	Definer
1457

1458
-------- switch to slave --------
1459
SHOW TRIGGERS;
1460
Trigger	Event	Table	Statement	Timing	Created	sql_mode	Definer
1461

1462 1463 1464
-------- switch to master -------

######## CREATE USER user1@localhost ########
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507

-------- switch to master -------
INSERT INTO t1 SET f1= 23 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
24

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
23

-------- switch to master -------
CREATE USER user1@localhost;
SELECT MAX(f1) FROM t1;
MAX(f1)
24

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
24

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
24

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
24

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SELECT user FROM mysql.user WHERE user = 'user1';
user
user1

1508
-------- switch to slave --------
1509 1510 1511 1512
SELECT user FROM mysql.user WHERE user = 'user1';
user
user1

1513 1514 1515
-------- switch to master -------

######## RENAME USER user1@localhost TO rename1@localhost ########
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558

-------- switch to master -------
INSERT INTO t1 SET f1= 24 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
25

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
24

-------- switch to master -------
RENAME USER user1@localhost TO rename1@localhost;
SELECT MAX(f1) FROM t1;
MAX(f1)
25

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
25

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
25

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
25

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SELECT user FROM mysql.user WHERE user = 'rename1';
user
rename1

1559
-------- switch to slave --------
1560 1561 1562 1563
SELECT user FROM mysql.user WHERE user = 'rename1';
user
rename1

1564 1565 1566
-------- switch to master -------

######## DROP USER rename1@localhost ########
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608

-------- switch to master -------
INSERT INTO t1 SET f1= 25 + 1;
SELECT MAX(f1) FROM t1;
MAX(f1)
26

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
25

-------- switch to master -------
DROP USER rename1@localhost;
SELECT MAX(f1) FROM t1;
MAX(f1)
26

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
26

-------- switch to master -------
ROLLBACK;
SELECT MAX(f1) FROM t1;
MAX(f1)
26

TEST-INFO: MASTER: The INSERT is committed (Succeeded)

-------- switch to slave --------
SELECT MAX(f1) FROM t1;
MAX(f1)
26

TEST-INFO: SLAVE:  The INSERT is committed (Succeeded)

-------- switch to master -------
SELECT user FROM mysql.user WHERE user = 'rename1';
user

1609
-------- switch to slave --------
1610 1611
SELECT user FROM mysql.user WHERE user = 'rename1';
user
1612 1613 1614 1615 1616
use test;

-------- switch to master -------
DROP DATABASE mysqltest1;
DROP DATABASE mysqltest3;