8数据库的liferay-7不工作

r3i60tvu  于 2021-06-20  发布在  Mysql
关注(0)|答案(2)|浏览(265)

当尝试用mysql-8数据库安装liferay-7时,命令提示符出现以下错误,安装没有完成

2018-07-06 12:41:15.163 INFO  [main][ReleaseLocalServiceImpl:130] Create tables and populate with default data
2018-07-06 12:41:40.559 WARN  [main][BaseDB:484] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'system tinyint,_        maxUsers integer,_      active_ tinyint_) engine InnoDB' at line 10: create table Company (_    mvccVersion bigint default 0 not null,_ companyId bigint not null primary key,_ accountId bigint,_      webId varchar(75) null,_        key_ longtext null,_    mx varchar(200) null,_  homeURL longtext null,_ logoId bigint,_ system tinyint,_        maxUsers integer,_      active_ tinyint_) engine InnoDB;_ [Sanitized]
xytpbqjk

xytpbqjk1#

mysql 8.0于2018年4月发布,liferay 7.0于2016年4月发布。很有可能liferay还没有在一个数据库上进行过测试,而这个数据库在最初发布后已经有两年没有运行了。
您可以在这里找到企业版的兼容性矩阵。它通常也是ce版本支持的基础设施的一个很好的指标(区别是仅限于开源数据库和应用服务器)。本文列出了mysql 5.6、5.7和mariadb 10作为liferay dxp 7.0的支持数据库,后者是与liferay portal 7.0ce并行的企业支持版本。

bbmckpt7

bbmckpt72#

正如mysql v8中关于保留字的mysql文档所说:
8.0.3增加系统(r)(保留)
所以,这个词 system 是保留的,因此需要用反记号将其括起来:

... `system` tinyint ...

相关问题