mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
f6682e2743
Moved .progress files into the log directory Moved 'cluster' database tables into the MySQL database, to not have 'cluster' beeing a reserved database name Fixed bug where mysqld got a core dump when trying to use a table created by MySQL 3.23 Fixed some compiler warnings Fixed small memory leak in libmysql Note that this doesn't changeset doesn't include the new mysqldump.c code required to run some tests. This will be added when I merge 5.0 to 5.1
72 lines
2 KiB
Text
72 lines
2 KiB
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
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 engine=ndb;
|
|
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
|
|
show binlog events from <binlog_start>;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS t1
|
|
master-bin.000001 # Query # # CREATE LOGFILE GROUP lg1
|
|
ADD UNDOFILE 'undofile.dat'
|
|
INITIAL_SIZE 16M
|
|
UNDO_BUFFER_SIZE = 1M
|
|
ENGINE=NDB
|
|
master-bin.000001 # Query # # alter logfile group lg1
|
|
add undofile 'undofile02.dat'
|
|
initial_size 4M engine=ndb
|
|
master-bin.000001 # Query # # CREATE TABLESPACE ts1
|
|
ADD DATAFILE 'datafile.dat'
|
|
USE LOGFILE GROUP lg1
|
|
INITIAL_SIZE 12M
|
|
ENGINE NDB
|
|
master-bin.000001 # Query # # alter tablespace ts1
|
|
add datafile 'datafile02.dat'
|
|
initial_size 4M engine=ndb
|
|
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.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'
|
|
engine=ndb;
|
|
alter tablespace ts1
|
|
drop datafile 'datafile02.dat'
|
|
engine=ndb;
|
|
DROP TABLESPACE ts1 ENGINE=NDB;
|
|
DROP LOGFILE GROUP lg1 ENGINE=NDB;
|