laravel 8 - Syntax error or access violation: 1071 Specified key was too long
解决方案:
- 打开
config/database.php
文件 - 找到
connections > mysql
中的'engine' => null,
- 修改为:
'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
或者'engine' => 'InnoDB',
解决方案:
config/database.php
文件connections > mysql
中的'engine' => null,
'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
或者 'engine' => 'InnoDB',
© 著作权归作者所有