Symfony ERROR语法错误或访问冲突

时间:2018-04-14 20:30:02

标签: symfony

我尝试按照symfony网站上的教程,但当我执行命令php bin / console doctrine:migrations:migrate出现错误时出现:

  

执行'CREATE TABLE app_users时发生异常(id INT AUTO_INCREMENT NOT NULL,用户名VARCHAR(191)NOT NULL,密码VARCHAR(64)NOT NULL,电子邮件VARCHAR(254)NOT NULL,is_active TINYINT(1)NOT NULL ,UNIQUE INDEX UNIQ_C2502824F85E0677(用户名),UNIQUE INDEX UNIQ_C2502824E7927C74(电子邮件),PRIMARY KEY(id))默认字符集
    utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB':
                                                                                                                                                                                                                                                                                                                                                                  SQLSTATE [42000]:语法错误或访问冲突:1071指定密钥太长;最大密钥长度为767字节

你知道这可能来自哪里吗?谢谢

0 个答案:

没有答案