Replication through ssh tunnels

Hi!

I have a problem with replication.
The master database resides on machine A, and the slave on machine B.
The replication is performed through an SSH tunnel. This SSH tunnel is
created using autossh to reestablish the connection if it times out or
is lost in any way.

However, whenever this ssh tunnel breaks, and restarts, the slave binary
log (relay log) is corrupted and the replication slave stops. This
happens daily, rendering the replication very unstable.

Anyone has an idea of any alternative method or any solutions to the
problem?

Any help is very appreciated.

Regards
/Martin Andersen

Mysql version:
$ mysqladmin --version
mysqladmin Ver 8.41 Distrib 5.0.22, for pc-linux-gnu on i486
Martin Andersen [ Di, 05 September 2006 10:00 ] [ ID #1455638 ]
Datenbanken » mailing.database.mysql » Replication through ssh tunnels

Vorheriges Thema: Query issues - works manually... doesn't with mysql_real_query
Nächstes Thema: Invoking a MySql Stored Procedure from C in Unix