Your MySQL connection id is 1 Server version: 5.5.60 Source distribution 2018-JAN-16 Copyright (c) 2000, 2018, 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 Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql 5.5 > CREATE TABLE `aliases` ( -> `id` int(10) unsigned NOT NULL auto_increment, -> `username` varchar(64) NOT NULL default '', -> `domain` varchar(64) default NULL, -> `contact` varchar(255) NOT NULL default '', -> PRIMARY KEY (`id`), -> KEY `alias_idx` (`username`,`domain`,`contact`) -> ) ENGINE=BLACKHOLE DEFAULT CHARSET=utf8; ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes mysql 5.5 > --------------------------------------------------------------------------- Your MySQL connection id is 1 Server version: 5.6.40 Source distribution 2018-JAN-16 Copyright (c) 2000, 2018, 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 > CREATE TABLE `aliases` ( -> `id` int(10) unsigned NOT NULL auto_increment, -> `username` varchar(64) NOT NULL default '', -> `domain` varchar(64) default NULL, -> `contact` varchar(255) NOT NULL default '', -> PRIMARY KEY (`id`), -> KEY `alias_idx` (`username`,`domain`,`contact`) -> ) ENGINE=BLACKHOLE DEFAULT CHARSET=utf8; ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes mysql 5.6 > ------------------------------------------------------------------------------ Your MySQL connection id is 2 Server version: 5.7.22 Source distribution 2018-JAN-16 Copyright (c) 2000, 2018, 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 Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql 5.7 > CREATE TABLE `aliases` ( -> `id` int(10) unsigned NOT NULL auto_increment, -> `username` varchar(64) NOT NULL default '', -> `domain` varchar(64) default NULL, -> `contact` varchar(255) NOT NULL default '', -> PRIMARY KEY (`id`), -> KEY `alias_idx` (`username`,`domain`,`contact`) -> ) ENGINE=BLACKHOLE DEFAULT CHARSET=utf8; ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes mysql 5.7 > ------------------------------------------------------------------------------------- Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 8.0.5-log Source distribution 2018-JAN-16 Copyright (c) 2000, 2018, 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 > CREATE DATABASE test; Query OK, 1 row affected (0.10 sec) mysql 8.0 > USE test; Database changed mysql 8.0 > CREATE TABLE `aliases` ( -> `id` int(10) unsigned NOT NULL auto_increment, -> `username` varchar(64) NOT NULL default '', -> `domain` varchar(64) default NULL, -> `contact` varchar(255) NOT NULL default '', -> PRIMARY KEY (`id`), -> KEY `alias_idx` (`username`,`domain`,`contact`) -> ) ENGINE=BLACKHOLE DEFAULT CHARSET=utf8; ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes mysql 8.0 >