File: binlog_mysqlbinlog_rewrite_db.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (41 lines) | stat: -rw-r--r-- 1,841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
RESET MASTER;
CREATE DATABASE db1;
USE db1;
CREATE TABLE t1 (i INT);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
UPDATE t1 SET i= i+1;
DELETE FROM t1 WHERE i=2;
[Syntax error in the use of the new option: The from database name is missing]
[Syntax error in the use of the new option: The '->' is missing]
[Syntax error in the use of the new option: The to database name is missing]
[VALID SYNTAX,The from->to database names is correctly mentioned]
[VALID SYNTAX read from remote server ,The from->to database names are correctly mentioned]
[VALID SYNTAX read from remote server in raw mode, the from->to database names are correctly mentioned]
[VALID SYNTAX, but during the application of rewrite_db filter an invalid event is found. Hence mysqlbinlog tool should exit with an appropriate error]
[ERROR: Got fatal error while applying rewrite db filter.]
#Dropping the database db1 and creating the table in the new database new_db1.
CREATE DATABASE new_db1;
DROP DATABASE db1;
RESET MASTER;
SELECT * FROM new_db1.t1;
ERROR 42S02: Table 'new_db1.t1' doesn't exist
DROP DATABASE db1;
RESET MASTER;
[The event of table db1.t1 has been successfully applied to new_db1.t1]
include/assert.inc [Assert that table new_db1.t1 has one row after applying the sql file.]
DROP DATABASE db1;
DROP DATABASE new_db1;
CREATE DATABASE new_db1;
RESET MASTER;
[The event of table db1.t1 has been successfully applied to new_db1.t1]
include/assert.inc [Assert that table new_db1.t1 has one row after applying the sql file.]
DROP DATABASE db1;
DROP DATABASE new_db1;
CREATE DATABASE new_db1;
RESET MASTER;
[The event of table db1.t1 has been successfully applied to new_db1.t1 from raw mode]
include/assert.inc [Assert that table new_db1.t1 has one row after applying the sql file from raw binlog dump.]
CLEANUP
DROP DATABASE db1;
DROP DATABASE new_db1;