nodejs express自己的session模块,通过创建sessions表来实现,但在db使用mysql情况下,创建sessions表 抛出如下异常:

定位为 mysql索引超长,解决方法为,在create table时增加 charset=‘utf8’设置。
在express.js 创建session,在options中添加参数

nodejs express自己的session模块,通过创建sessions表来实现,但在db使用mysql情况下,创建sessions表 抛出如下异常:
定位为 mysql索引超长,解决方法为,在create table时增加 charset=‘utf8’设置。
在express.js 创建session,在options中添加参数
本文标题:SequelizeBaseError ER_TOO_LONG_K
本文链接:https://www.haomeiwen.com/subject/lfbjvttx.html
网友评论