Nextcloud安装时的数据库日志问题

安装nextcloud时报错

错误Error while trying to create admin user: An exception occurred while executing 'INSERT INTO `oc_migrations` (`app`,`version`) SELECT ?,? FROM `oc_migrations` WHERE `app` = ? AND `version` = ? HAVING COUNT(*) = 0' with params ["core", "13000Date20170705121758", "core", "13000Date20170705121758"]: SQLSTATE[HY000]: General error: 1665 Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.

搜了一下,找到这篇文章:

https://blog.csdn.net/wsyw126/article/details/73011497

开启binlog后异常:impossible to write to binary log since BINLOG_FORMAT = STATEMENT

和我的应该是同一个问题

永久生效,需要修改

my.ini

# binary logging format - ROW

binlog_format=ROW

不过我的是mariadb,没找到my.ini,只有my.cnf

vim /etc/my.cnf

# binary logging format - ROW binlog_format=ROW

然后重新安装nextcloud就正常了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容