c:\dbs>c:\dbs\5.5\bin\mysql -uroot --port=3550 -p --prompt="mysql 5.5 > " Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.5.54 Source distribution PULL: 2016-OCT-03 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.5 > use test Database changed mysql 5.5 > set @@sql_mode = "STRICT_ALL_TABLES"; Query OK, 0 rows affected (0.00 sec) mysql 5.5 > drop table t1; Query OK, 0 rows affected (0.05 sec) mysql 5.5 > create table t1(c1 bit(64) default b''); ERROR 1067 (42000): Invalid default value for 'c1' mysql 5.5 > create table t1(c1 bit(64)); Query OK, 0 rows affected (0.06 sec) mysql 5.5 > insert into t1 values(b''); Query OK, 1 row affected (0.17 sec) mysql 5.5 > update t1 set c1 = b'1' where c1=''; Query OK, 1 row affected (0.03 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql 5.5 > select c1+0 from t1; +------+ | c1+0 | +------+ | 1 | +------+ 1 row in set (0.00 sec) c:\dbs>c:\dbs\5.6\bin\mysql -uroot --port=3560 -p --prompt="mysql 5.6 > " Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.35 Source distribution PULL: 2016-OCT-03 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.6 > use test Database changed mysql 5.6 > set @@sql_mode = "STRICT_ALL_TABLES"; Query OK, 0 rows affected (0.03 sec) mysql 5.6 > drop table t1; ERROR 1051 (42S02): Unknown table 'test.t1' mysql 5.6 > create table t1(c1 bit(64) default b''); ERROR 1067 (42000): Invalid default value for 'c1' mysql 5.6 > create table t1(c1 bit(64)); Query OK, 0 rows affected (0.25 sec) mysql 5.6 > insert into t1 values(b''); Query OK, 1 row affected (0.03 sec) c:\dbs>c:\dbs\5.7\bin\mysql -uroot --port=3570 -p --prompt="mysql 5.7 > " Enter password: ****** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.17 Source distribution PULL: 2016-OCT-03 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.7 > use test Database changed mysql 5.7 > set @@sql_mode = "STRICT_ALL_TABLES"; Query OK, 0 rows affected, 2 warnings (0.03 sec) mysql 5.7 > drop table t1; ERROR 1051 (42S02): Unknown table 'test.t1' mysql 5.7 > create table t1(c1 bit(64) default b''); ERROR 1067 (42000): Invalid default value for 'c1' mysql 5.7 > create table t1(c1 bit(64)); Query OK, 0 rows affected (0.29 sec) mysql 5.7 > insert into t1 values(b''); Query OK, 1 row affected (0.05 sec) c:\dbs>c:\dbs\8.0\bin\mysql -uroot --port=3580 -p --prompt="mysql 8.0 > " Enter password: ****** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 8.0.0-dmr MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 8.0 > use test Database changed mysql 8.0 > set @@sql_mode = "STRICT_ALL_TABLES"; Query OK, 0 rows affected, 2 warnings (0.00 sec) mysql 8.0 > drop table t1; ERROR 1051 (42S02): Unknown table 'test.t1' mysql 8.0 > create table t1(c1 bit(64) default b''); ERROR 1067 (42000): Invalid default value for 'c1' mysql 8.0 > create table t1(c1 bit(64)); Query OK, 0 rows affected (0.20 sec) mysql 8.0 > insert into t1 values(b''); Query OK, 1 row affected (0.04 sec)