Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm thinking of switching from STATEMENT-based to ROW-based MySQL replication, but I'm having a hard time figuring out if ROW-based replication is available on my 5.1.41-3ubuntu12.10-log server/client.

Looking at the documentation here: looks like ROW isn't an option until 5.1.5. But MIXED is mentioned as an option earlier (and MIXED implies that ROW is available, I'd think). Maybe the doc is only talking about the command line startup option?

In short is ROW-based MySQL replication available to me (5.1.41)?

share|improve this question
Something to consider before you switch : Row-Based Binary Logging causes Binary Log Files to grow faster the Statement-Based Logging variety. In some cases, it can be orders of magnitude. – RolandoMySQLDBA Aug 4 '11 at 18:12

According to :

Replication capabilities in MySQL originally were based on propagation of SQL statements from master to slave. This is called statement-based replication (often abbreviated as SBR), which corresponds to the standard statement-based binary logging format. In MySQL 5.1.4 and earlier, binary logging and replication used this format exclusively.

Row-based binary logging logs changes in individual table rows. When used with MySQL replication, this is known as row-based replication (often abbreviated as RBR). In row-based replication, the master writes events to the binary log that indicate how individual table rows are changed.

As of MySQL 5.1.8, the server can change the binary logging format in real time according to the type of event using mixed-format logging.

When the mixed format is in effect, statement-based logging is used by default, but automatically switches to row-based logging in particular cases as described later. Replication using the mixed format is often referred to as mixed-based replication or mixed-format replication. For more information, see Section, “Mixed Binary Logging Format”.

From MySQL 5.1.12 to MySQL 5.1.28, mixed format is the default. Beginning with MySQL 5.1.29, statement-based format is the default.

Based on this excerpt and the fact that MySQL 5.1.30 was the very first GA release of MySQL 5.1, MySQL 5.1.41 has to have row-based binary logging, and thus row-based replication.

share|improve this answer
Thanks. Sounds right to me. – Darryl Shippy Aug 4 '11 at 18:10
Yeah, I'm aware of the log file growth when ROW-based logging is used. I'm OK with that. I'm more interested in stability/reliability here, and haven't found the reliability I'm looking for with STATEMENT-based logging to date. – Darryl Shippy Aug 4 '11 at 18:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.