dbTalk Databases Forums  

Problem with binary logging

comp.databases.mysql comp.databases.mysql


Discuss Problem with binary logging in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Yo
 
Posts: n/a

Default Problem with binary logging - 11-05-2010 , 03:52 AM






Hello,

I am working on an application working with a version 5 of mySQL. In
our mySQL server, binary logging is enabled as replication of the base
is activated.

But I noticed that when my app tries to insert data (with INSERT INTO
statement) on the database, insert is not made and I get an error
message (Binary Logging not Possible. Message: Transaction Level
READ-COMMITTED in InnoDB is not Safe for Binlog Mode STATEMENT).

I have been looking on the Internet about this message, but I'd like to
know if somebody have experience about this problem, and if a
workaround exist to allow the insertions and also to allow binary
logging at the same time.

Thank you.

Reply With Quote
  #2  
Old   
Yo
 
Posts: n/a

Default Re: Problem with binary logging - 11-05-2010 , 04:10 AM






Yo a formulé la demande :

Quote:
I have been looking on the Internet about this message, but I'd like to know
if somebody have experience about this problem, and if a workaround exist to
allow the insertions and also to allow binary logging at the same time.

Thank you.
FYI, it seems that setting binary logging mode to RAW instead of
STATEMENT (default value) solve this issue. :-)

Reply With Quote
  #3  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: Problem with binary logging - 11-05-2010 , 06:04 AM



Yo <nomail (AT) nomail_invalid (DOT) net> wrote:

[Transaction Level READ-COMMITTED in InnoDB is not Safe
for Binlog Mode STATEMENT]

Quote:
FYI, it seems that setting binary logging mode to RAW instead of
STATEMENT (default value) solve this issue.
ITYM binlog mode is ROW now. And yes, this will work, just
like binlog mode MIXED.

See: http://dev.mysql.com/doc/refman/5.1/...g-formats.html

But the much better way out would have been to not use the
READ-COMMITTED transaction isolation level but to stay with
the default REPEATABLE-READ. Or do you have a good reason
for using READ-COMMITTED?

See: http://dev.mysql.com/doc/refman/5.1/...ansaction.html


XL

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.