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就正常了

你可能感兴趣的:(Nextcloud安装时的数据库日志问题)