2002-10-24 17:46:14 -06:00
|
|
|
stop slave;
|
2002-08-08 03:12:02 +03:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2001-09-27 23:05:54 -06:00
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2005-03-16 15:57:57 +03:00
|
|
|
SHOW VARIABLES LIKE 'relay_log_space_limit';
|
|
|
|
Variable_name Value
|
|
|
|
relay_log_space_limit 0
|
2006-02-03 01:59:02 +01:00
|
|
|
CREATE TABLE t1 (name varchar(64), age smallint(3))ENGINE=InnoDB;
|
2006-04-19 15:29:49 +02:00
|
|
|
INSERT INTO t1 SET name='Andy', age=31;
|
|
|
|
INSERT INTO t1 SET name='Jacob', age=2;
|
|
|
|
INSERT INTO t1 SET name='Caleb', age=1;
|
2001-09-27 23:05:54 -06:00
|
|
|
ALTER TABLE t1 ADD id int(8) ZEROFILL AUTO_INCREMENT PRIMARY KEY;
|
2006-01-18 00:45:23 +01:00
|
|
|
SELECT * FROM t1 ORDER BY id;
|
2000-12-27 03:31:06 +02:00
|
|
|
name age id
|
|
|
|
Andy 31 00000001
|
|
|
|
Jacob 2 00000002
|
|
|
|
Caleb 1 00000003
|
2006-01-18 00:45:23 +01:00
|
|
|
SELECT * FROM t1 ORDER BY id;
|
2001-03-25 01:02:26 +02:00
|
|
|
name age id
|
|
|
|
Andy 31 00000001
|
|
|
|
Jacob 2 00000002
|
|
|
|
Caleb 1 00000003
|
2006-04-19 15:29:49 +02:00
|
|
|
DROP TABLE t1;
|