MariaDB 10 mysqldump备份sql文件导入报错一则

今天在做数据迁移的时,在主库上dump出来数据后,在从库上导入数据时报错。

报错信息如下:

RROR 1665 (HY000) at line 61: 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.


此次错误和binlog_format格式有关。初始设置为STATEMENT ,设置为 ROW格式,问题解决。


SET GLOBAL  BINLOG_FORMAT = ROW;


# zcat backup.sql.gz  | mysql -uroot


导入成功。

你可能感兴趣的:(MySQL,排错)