为什么会显示“无法进行二进制日志记录".在我的MySQL服务器上? [英] Why do I get 'Binary logging not possible.' on my MySQL server?

查看:263
本文介绍了为什么会显示“无法进行二进制日志记录".在我的MySQL服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我今天启动MySQL服务器并尝试使用 Toad for Mysql 进行一些更改时,我得到此消息:

When I started up my MySQL server today and try to do some changes using Toad for Mysql, I get this message:

MySQL数据库错误

MySQL Database Error

无法进行二进制日志记录.消息:交易级别 对于Binlog模式"STATEMENT",InnoDB中的"READ-COMMITTED"不安全

Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'

我不知道这意味着什么.我正在使用Ubuntu 11.x在VirtualBox上运行Mysql.

I have no idea what this means. I'm running Mysql on VirtualBox with Ubuntu 11.x.

以前有人遇到过这个问题吗?

Has anyone run into this problem before?

推荐答案

根据

有几种解决方法:

There are several solutions for the issue:

  • 您需要将binlog模式更改为 ROW MIXED ,以便将数据加载到数据库中

  • You need to change the binlog mode to either ROW or MIXED in order to run the load of the data into the database

mysql> SET GLOBAL binlog_format = 'ROW';

  • 如果您不打算使用MySQL服务器进行复制,请考虑通过删除以下内容来关闭二进制日志记录: mysqld实用程序的命令选项中的选项--log-bin 启动MySQL服务器.

  • If you are not planning to use your MySQL server for the replication consider turning the binary logging off by removing the option --log-bin from the command options for the mysqld utility starting the MySQL server.

    这篇关于为什么会显示“无法进行二进制日志记录".在我的MySQL服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆