71 lines
2.3 KiB
Plaintext
71 lines
2.3 KiB
Plaintext
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;
|
|
CREATE LOGFILE GROUP lg1
|
|
ADD UNDOFILE 'undofile.dat'
|
|
INITIAL_SIZE 16M
|
|
UNDO_BUFFER_SIZE = 1M
|
|
ENGINE=NDB;
|
|
alter logfile group lg1
|
|
add undofile 'undofile02.dat'
|
|
initial_size 4M engine=ndb;
|
|
CREATE TABLESPACE ts1
|
|
ADD DATAFILE 'datafile.dat'
|
|
USE LOGFILE GROUP lg1
|
|
INITIAL_SIZE 12M
|
|
ENGINE NDB;
|
|
alter tablespace ts1
|
|
add datafile 'datafile02.dat'
|
|
initial_size 4M;
|
|
CREATE TABLE t1
|
|
(pk1 int not null primary key, b int not null, c int not null)
|
|
tablespace ts1 storage disk
|
|
engine ndb;
|
|
insert into t1 values (1,2,3);
|
|
select * from t1 order by pk1;
|
|
pk1 b c
|
|
1 2 3
|
|
select * from t1 order by pk1;
|
|
pk1 b c
|
|
1 2 3
|
|
include/show_binlog_events.inc
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t1` /* generated by server */
|
|
master-bin.000001 # Query # # use `test`; CREATE LOGFILE GROUP lg1
|
|
ADD UNDOFILE 'undofile.dat'
|
|
INITIAL_SIZE 16M
|
|
UNDO_BUFFER_SIZE = 1M
|
|
ENGINE=NDB
|
|
master-bin.000001 # Query # # use `test`; alter logfile group lg1
|
|
add undofile 'undofile02.dat'
|
|
initial_size 4M engine=ndb
|
|
master-bin.000001 # Query # # use `test`; CREATE TABLESPACE ts1
|
|
ADD DATAFILE 'datafile.dat'
|
|
USE LOGFILE GROUP lg1
|
|
INITIAL_SIZE 12M
|
|
ENGINE NDB
|
|
master-bin.000001 # Query # # use `test`; alter tablespace ts1
|
|
add datafile 'datafile02.dat'
|
|
initial_size 4M
|
|
master-bin.000001 # Query # # use `test`; CREATE TABLE t1
|
|
(pk1 int not null primary key, b int not null, c int not null)
|
|
tablespace ts1 storage disk
|
|
engine ndb
|
|
master-bin.000001 # Query # # BEGIN
|
|
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
|
master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
|
|
master-bin.000001 # Write_rows # # table_id: #
|
|
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
|
master-bin.000001 # Query # # COMMIT
|
|
drop table t1;
|
|
alter tablespace ts1
|
|
drop datafile 'datafile.dat';
|
|
alter tablespace ts1
|
|
drop datafile 'datafile02.dat';
|
|
DROP TABLESPACE ts1;
|
|
DROP LOGFILE GROUP lg1 ENGINE=NDB;
|
|
include/rpl_end.inc
|