使用MySQL-8数据库的Liferay-7无法正常工作

时间:2018-07-06 12:55:07

标签: mysql liferay-7

在尝试将Liferay-7与MySQL-8数据库一起安装时,命令提示符陷入以下错误,并且安装未完成

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]

2 个答案:

答案 0 :(得分:1)

如MySQL v8中的MySQL documentation on reserved words所述:

  

在8.0.3版中添加的系统(R)(保留)

因此,system是保留字,因此您需要用反引号将其括起来:

... `system` tinyint ...

答案 1 :(得分:1)

MySQL 8.0已released in April 2018,Liferay 7.0已released in April 2016。很好的猜测是Liferay尚未在最初发布后两年都没有发布的数据库上进行过测试。

您可以找到compatibility matrix for the enterprise version here。通常,它也是CE版本受支持基础结构的一个很好的指标(区别在于仅限于开源数据库和应用服务器)。本文将MySQL 5.6、5.7和MariaDB 10列为Liferay DXP 7.0的受支持数据库,Liferay DXP 7.0是与Liferay Portal 7.0 CE并行的企业支持版本。