Platform7.6 Mysql5.6初始化数据库报错:Specified key wa...
1年前
Platform7.6 Mysql5.6初始化数据库报错:Specified key was too long;max key length is 767 bytes。
访问普元产品知识库(doc.primeton.com),查看本文原文,获得更多普元产品知识,点击此处
【解答】
Mysql5.6较之前的版本,修改点比较多,更新跨度比较大,在安装Platform7.6之前,需要对Mysql的配置文件进行配置:
找到Mysql5.6的配置文件,Windows环境下默认配置文件是my.ini,Linux环境下默认配置文件是my.cnf,在配置文件的末尾,添加如下配置:
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
default-storage-engine=INNODB
character-set-server=utf8
innodb_large_prefix = on
innodb_file_format = Barracuda
innodb_file_format_check = ON
innodb_file_format_max = Barracuda
innodb_file_per_table = ON
transaction-isolation = READ-COMMITTED
保存,重启mysql服务,使用命令行:show variables like '%innodb%' ;查看上述配置是否生效
如果没有账号可以 一个帐号。