Debian Codegraph @

mysql-test/suite/rpl/r/rpl_loaddata_map.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 ==== Create a big file ====
7 ==== Load our big file into a table ====
8 create table t2 (id int not null primary key auto_increment);
9 select @@session.read_buffer_size - @@session.max_allowed_packet > 0 ;
10 @@session.read_buffer_size - @@session.max_allowed_packet > 0
11 1
12 load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2;
13 select count(*) from t2 /* 5 000 */;
14 count(*)
15 5000
16 include/show_binlog_events.inc
17 Log_name Pos Event_type Server_id End_log_pos Info
18 master-bin.000001 # Query # # use `test`; create table t2 (id int not null primary key auto_increment)
19 master-bin.000001 # Query # # BEGIN
20 master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
21 master-bin.000001 # Append_block # # ;file_id=#;block_len=#
22 master-bin.000001 # Append_block # # ;file_id=#;block_len=#
23 master-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' INTO TABLE `t2` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`id`) ;file_id=#
24 master-bin.000001 # Query # # COMMIT
25 ==== Verify results on slave ====
26 [on slave]
27 include/sync_slave_sql_with_master.inc
28 select count(*) from t2 /* 5 000 */;
29 count(*)
30 5000
31 ==== Clean up ====
32 [on master]
33 drop table t2;
34 include/sync_slave_sql_with_master.inc
35 include/rpl_end.inc