1include/master-slave.inc 2[connection master] 3set time_zone='+03:00'; 4set timestamp=unix_timestamp('2011-01-01 01:01:01') + 0.123456; 5create table t1 (a timestamp(4) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, b varchar(100), c datetime(2)); 6insert t1 (b,c) values (now(6), now(6)); 7insert t1 values ('2010-10-10 10:10:10.101010','2010-10-10 10:10:10.101010','2010-10-10 10:10:10.101010'); 8set timestamp=unix_timestamp('2022-02-02 02:02:02') + 0.654321; 9insert t1 (b,c) values (now(), now()); 10insert t1 (b,c) values (0,0); 11insert t1 (a,b,c) values (0,0,now(6)); 12select * from t1; 13a b c 142011-01-01 01:01:01.1234 2011-01-01 01:01:01.123456 2011-01-01 01:01:01.12 152010-10-10 10:10:10.1010 2010-10-10 10:10:10.101010 2010-10-10 10:10:10.10 162022-02-02 02:02:02.6543 2022-02-02 02:02:02 2022-02-02 02:02:02.00 172022-02-02 02:02:02.6543 0 0000-00-00 00:00:00.00 180000-00-00 00:00:00.0000 0 2022-02-02 02:02:02.65 19connection slave; 20connection slave; 21set time_zone='+03:00'; 22select * from t1; 23a b c 242011-01-01 01:01:01.1234 2011-01-01 01:01:01.123456 2011-01-01 01:01:01.12 252010-10-10 10:10:10.1010 2010-10-10 10:10:10.101010 2010-10-10 10:10:10.10 262022-02-02 02:02:02.6543 2022-02-02 02:02:02 2022-02-02 02:02:02.00 272022-02-02 02:02:02.6543 0 0000-00-00 00:00:00.00 280000-00-00 00:00:00.0000 0 2022-02-02 02:02:02.65 29connection master; 30drop table t1; 31include/rpl_end.inc 32