forked from percona/percona-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue percona#1: Enable Row-based binlogging and disable statemen…
…t-based.
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
!include suite/rpl/my.cnf | ||
|
||
[mysqld.1] | ||
binlog_format=row | ||
[mysqld.2] | ||
binlog_format=row | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include/master-slave.inc | ||
Warnings: | ||
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. | ||
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. | ||
[connection master] | ||
drop table if exists t1; | ||
select @@binlog_format; | ||
@@binlog_format | ||
ROW | ||
create table t1 (pk int primary key) engine=rocksdb; | ||
insert into t1 values (1),(2),(3); | ||
include/sync_slave_sql_with_master.inc | ||
select * from t1; | ||
pk | ||
1 | ||
2 | ||
3 | ||
drop table t1; | ||
include/rpl_end.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
source include/master-slave.inc; | ||
|
||
connection master; | ||
--disable_warnings | ||
drop table if exists t1; | ||
--enable_warnings | ||
|
||
connection master; | ||
|
||
select @@binlog_format; | ||
create table t1 (pk int primary key) engine=rocksdb; | ||
insert into t1 values (1),(2),(3); | ||
|
||
--source include/sync_slave_sql_with_master.inc | ||
connection slave; | ||
|
||
select * from t1; | ||
|
||
connection master; | ||
drop table t1; | ||
|
||
--source include/rpl_end.inc | ||
|