具有MySQL-8数据库的Liferay-7不工作
在尝试使用MySQL-8数据库安装Liferay-7时,命令提示符出现以下错误,安装未完成具有MySQL-8数据库的Liferay-7不工作,mysql,liferay-7,Mysql,Liferay 7,在尝试使用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
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]
正如MySQL v8所说:
8.0.3中增加的系统(R)(保留)
因此,单词system
是保留的,因此您需要用反勾号将其括起来:
... `system` tinyint ...
MySQL 8.0已经过时,Liferay 7.0已经过时。很有可能Liferay在首次发布后的两年多没有在一个数据库上测试过
你可以找到那个。它通常也是CE版本支持的基础设施的一个很好的指标(区别在于仅限于开源数据库和应用服务器)。本文档将MySQL 5.6、5.7和MariaDB 10列为Liferay DXP 7.0支持的数据库,Liferay DXP 7.0是与Liferay Portal 7.0 CE并行的企业支持版本。这意味着Liferay DXP 7.x不支持MySQL v8。所以,我们应该避免它。我正在使用最新的MariaDB-10.3.8和Liferay DXP-7.1.0-ga1,它工作正常。感谢您提供的所有详细信息@Olaf Kock。