Current Path : /home/usr.opt/mysql57/mysql-test/suite/rpl/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/r/rpl_mixed_ddl_dml.result |
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] create table t1 (n int auto_increment primary key); set insert_id = 2000; insert into t1 values (NULL),(NULL),(NULL); include/sync_slave_sql_with_master.inc select * from t1; n 2000 2001 2002 SHOW SLAVE HOSTS; Server_id Host Port Master_id Slave_UUID 2 127.0.0.1 SLAVE_PORT 1 SLAVE_UUID drop table t1; include/sync_slave_sql_with_master.inc stop slave; include/wait_for_slave_to_stop.inc create table t2(id int auto_increment primary key, created datetime); set timestamp=12345; insert into t2 set created=now(); select * from t2; id created 1 1970-01-01 06:25:45 create table t3 like t2; create temporary table t4 like t2; create table t5 select * from t4; start slave; include/wait_for_slave_to_start.inc select * from t2; id created 1 1970-01-01 06:25:45 show create table t3; Table Create Table t3 CREATE TABLE `t3` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 show create table t5; Table Create Table t5 CREATE TABLE `t5` ( `id` int(11) NOT NULL DEFAULT '0', `created` datetime DEFAULT NULL ) ENGINE=ENGINE DEFAULT CHARSET=latin1 drop table t2,t3,t5; drop temporary table if exists t4; include/sync_slave_sql_with_master.inc include/rpl_end.inc