1set @save_binlog_checksum= @@global.binlog_checksum;
2set @@global.binlog_checksum = default;
3select @@global.binlog_checksum as 'must be CRC32 by default';
4must be CRC32 by default
5CRC32
6select @@session.binlog_checksum as 'no session var';
7ERROR HY000: Variable 'binlog_checksum' is a GLOBAL variable
8set @@global.binlog_checksum = CRC32;
9set @@global.binlog_checksum = CRC32;
10set @@global.master_verify_checksum = 0;
11set @@global.master_verify_checksum = default;
12set @@global.binlog_checksum = ADLER32;
13ERROR 42000: Variable 'binlog_checksum' can't be set to the value of 'ADLER32'
14set @@global.binlog_checksum = @save_binlog_checksum;
15