Neos 4.0.x 安装失败

Neos 4.0.x setup fails

安装neos时抛出异常:

An exception occurred while executing 'CREATE TABLE flow3_resource_resourcepointer (hash VARCHAR(255) NOT NULL, PRIMARY KEY(hash)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB':
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

The exception details have been logged to the Flow system log.
Exception in line 184 of /Users/julius/Documents/dev/neos/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php: An exception occurred while executing 'CREATE TABLE flow3_resource_resourcepointer (hash VARCHAR(255) NOT NULL, PRIMARY KEY(hash)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB':

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes - See also: 201805011913565a6e91.txt

Exception Code  1355480641
Exception Type  Neos\Flow\Core\Booting\Exception\SubProcessException
Log Reference   20180501191355663ebf
Thrown in File  Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php
Line    677

对于 Neos 4.0,默认字符集和排序规则更改为 utf8mb4,这需要更长的密钥,因此至少需要 MySQL 5.7.x 或 MariaDB 10.2.x。我假设您尝试在较旧的数据库版本上安装 Neos 4.0。