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]
[connection master]
create table t (i int primary key auto_increment) engine=rocksdb;
create table t (i int primary key auto_increment) engine=rocksdb;
#
#
# Testing concurrent transactions.
# Testing concurrent transactions.
#
#
connect con1,localhost,root,,;
connect con2,localhost,root,,;
connect con3,localhost,root,,;
connection con1;
begin;
begin;
insert into t values ();
insert into t values ();
connection con2;
begin;
begin;
insert into t values ();
insert into t values ();
connection con3;
begin;
begin;
insert into t values ();
insert into t values ();
connection con1;
insert into t values ();
insert into t values ();
connection con2;
insert into t values ();
insert into t values ();
connection con3;
insert into t values ();
insert into t values ();
connection con2;
commit;
commit;
connection con3;
rollback;
rollback;
connection con1;
commit;
commit;
delete from t;
delete from t;
# Master value before restart
# Master value before restart
...
@@ -25,25 +34,34 @@ select table_schema, table_name, auto_increment from information_schema.tables w
...
@@ -25,25 +34,34 @@ select table_schema, table_name, auto_increment from information_schema.tables w
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 7
test t 7
# Slave value before restart
# Slave value before restart
connection slave;
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 6
test t 6
connection slave;
include/stop_slave.inc
include/stop_slave.inc
include/rpl_restart_server.inc [server_number=1]
include/rpl_restart_server.inc [server_number=1]
connection default;
# Master value after restart
# Master value after restart
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 6
test t 6
include/rpl_restart_server.inc [server_number=2]
include/rpl_restart_server.inc [server_number=2]
connection slave;
include/start_slave.inc
include/start_slave.inc
# Slave value after restart
# Slave value after restart
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 6
test t 6
disconnect con1;
disconnect con2;
disconnect con3;
#
#
# Testing interaction of merge markers with various DDL statements.
# Testing interaction of merge markers with various DDL statements.
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]
[connection master]
create table t (i int primary key auto_increment) engine=rocksdb partition by key (i) partitions 3;
create table t (i int primary key auto_increment) engine=rocksdb partition by key (i) partitions 3;
#
#
# Testing concurrent transactions.
# Testing concurrent transactions.
#
#
connect con1,localhost,root,,;
connect con2,localhost,root,,;
connect con3,localhost,root,,;
connection con1;
begin;
begin;
insert into t values ();
insert into t values ();
connection con2;
begin;
begin;
insert into t values ();
insert into t values ();
connection con3;
begin;
begin;
insert into t values ();
insert into t values ();
connection con1;
insert into t values ();
insert into t values ();
connection con2;
insert into t values ();
insert into t values ();
connection con3;
insert into t values ();
insert into t values ();
connection con2;
commit;
commit;
connection con3;
rollback;
rollback;
connection con1;
commit;
commit;
delete from t;
delete from t;
# Master value before restart
# Master value before restart
...
@@ -25,25 +34,34 @@ select table_schema, table_name, auto_increment from information_schema.tables w
...
@@ -25,25 +34,34 @@ select table_schema, table_name, auto_increment from information_schema.tables w
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 7
test t 7
# Slave value before restart
# Slave value before restart
connection slave;
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 6
test t 6
connection slave;
include/stop_slave.inc
include/stop_slave.inc
include/rpl_restart_server.inc [server_number=1]
include/rpl_restart_server.inc [server_number=1]
connection default;
# Master value after restart
# Master value after restart
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 6
test t 6
include/rpl_restart_server.inc [server_number=2]
include/rpl_restart_server.inc [server_number=2]
connection slave;
include/start_slave.inc
include/start_slave.inc
# Slave value after restart
# Slave value after restart
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
select table_schema, table_name, auto_increment from information_schema.tables where table_name = 't';
table_schema table_name auto_increment
table_schema table_name auto_increment
test t 6
test t 6
disconnect con1;
disconnect con2;
disconnect con3;
#
#
# Testing interaction of merge markers with various DDL statements.
# Testing interaction of merge markers with various DDL statements.