安装Gogs时出现Error 1071: Specified key was too long; max key length is 767 bytes的解决方法;
执行以下Mysql语句(注:这里使用的数据库为gogs)
SET GLOBAL innodb_file_per_table = ON, innodb_file_format = Barracuda, innodb_large_prefix = ON; DROP DATABASE IF EXISTS gogs; CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
参考: 安装gogs 出现 Specified key was too long; max key length is 1000 byte - 小强coding (szwyll.com)