Do you have a master-slave MySQL set up? Ever do DDL changes on the master? You may be hit with a serious data integrity bug. Read on. One of our clients does a regular rename tables on the master to keep the current table small and archive off old data. We’d occasionally be hit by [...]
The interesting part is that this session is not a theoretical …
[Read more]|
|
The Open SQL Camp will take place in Charlottesville, VA, USA, on November 14, 15, and 16. Attendees are requested to register in the event's Wiki, and if you are interested in presenting something, there is a mailing list to discuss your intended topics. |
I have proposed a topic about the MySQL community driven replication monitoring project, …
[Read more]I have recently added some features to Maatkit’s mk-table-checksum tool that can make it easy to checksum the relevant parts of your data more frequently (i.e. continually, but not continuously). This in turn makes it possible for you to find out much sooner if a slave becomes different from its master, and then you [...]
|
|
MySQL 5.1 introduces row based replication, a way of replicating data that fixes many inconsistencies of the statement based replication, the standard method used by MySQL so far. |
The good: row based replication solves some problems when
replicating the result of non deterministic functions, such as
UUID() or NOW().
The bad: row-based replication may break existing
applications, where you count on the quirks of statement based
replication to execute conditionally (updates base on
@@server_id, for example), and may perform badly on
updates applied to very large tables.
…
The problem of MySQL Replication unable to catch up is quite common in MySQL world and in fact I already wrote about it. There are many aspects of managing mysql replication lag such as using proper hardware and configuring it properly. In this post I will just look at couple of query design mistakes which result in low hanging fruit troubleshooting MySQL Replication Lag
First fact you absolutely need to remember is MySQL Replication is single threaded, which means if you have any long running write query it clogs replication stream and small and fast updates which go after it in MySQL binary log can't proceed. It is either more than than just about queries - if you're using explicit transactions all updates from the transactions are buffered together and when dumped to binary log as one big chunk which can't be interleaved …
[Read more]
The 1.0 Alpha of Tungsten Replicator is out. Actually it's been
out since Tuesday but it's been a busy week. Binary downloads are
available here.
The Alpha release offers basic statement replication for MySQL 5.0 on Linux, Solaris, MacOSX, and Windows
platforms. The setup is very simple, and there are procedures for
master failover as well as performing consistency checks. If you
work at it, you'll find bugs. That's a promise, not a threat.
Please log them in the project JIRA. We gladly accept feature
requests, too.
Meanwhile, the …
Replication is one of the most useful but also also one of the
most arcane database technologies. Every real database has it in
some form. Despite ubiquity, replication is complex to use and in
the case of commercial databases quite expensive to boot.
We aim to
change that. On Tuesday we will be announcing replication support
for Oracle.
Oracle replication will be based on our open source Tungsten Replicator, which is currently
available in an alpha version for MySQL. Our goal is to provide replication that
is accessible and usable by a wide range of users, especially
those running lower-cost Oracle editions.
It's not a coincidence that we chose to implement MySQL and
Oracle …
For example, after executing this code:
create table t1 (id int, c char(10), d date);
insert into t1 values (1, 'abc', '2008-01-01');
insert into t1 values (2, 'def', '2008-08-19');
insert into t1 values (3, 'ghi', current_date());
select * from t1; …[Read more]
A couple of months ago Mark Callaghan mentioned it would be very nice
to have a replication product that could transfer data from newer
to older versions of MySQL. Ever since then I have been interested in
trying it with our new Tungsten Replicator. Today I finally got the
chance.
I have a couple of Centos5 virtual machines running on my Mac
that I have been using to test the latest Tungsten Replicator
0.9.1 build. I happen to have MySQL 5.0.22 (the antiquated
version that comes with CentOS5) on one VM. I set up MySQL 4.1.22
on the other CentOS5 VM and tried to make it a slave of the 5.0
server using MySQL replication. The result was the following
error message:
080911 15:25:13 [ERROR] Master reported an …