Re: Failover on master/slave replication

2010-10-19 Thread Walter Heck
On Tue, Oct 19, 2010 at 19:06, John Daisley wrote: > You may also want to take a look at MySQL MMM which makes use of > Active/passive masters to makes MySQL failover very simple. +1 We could not do much of our daily work without MMM. It makes the whole HA/Failover thing a breeze. We have it i

RE: Failover on master/slave replication

2010-10-19 Thread Jerry Schwartz
:machi...@rdc.co.za] >Sent: Tuesday, October 19, 2010 5:15 AM >To: mysql mailing list >Subject: Failover on master/slave replication > >Good day all > >I am hoping someone has had some experience in this to assist >me. > >I have been going through lots of foru

Re: Failover on master/slave replication

2010-10-19 Thread John Daisley
You may also want to take a look at MySQL MMM which makes use of Active/passive masters to makes MySQL failover very simple. On 19 October 2010 11:45, Johan De Meersman wrote: > That's pretty much it, indeed. You need to make absolutely sure that no > more > connections can be made to the old,

Re: Failover on master/slave replication

2010-10-19 Thread Johan De Meersman
That's pretty much it, indeed. You need to make absolutely sure that no more connections can be made to the old, broken master, though - even if you have to physically pull the network or power cable. Failover services refer to this as STONITH: Shoot The Other Node In The Head. Don't think "but it

Re: Failover on master/slave replication

2010-10-19 Thread a . smith
Quoting Machiel Richards : The question I have however is how do you fail over to the slave server in the event that the master server is unavailable and then how to revert back to the master server once the server is available again. Hi, to fail over to the slave, you dont need t

Failover on master/slave replication

2010-10-19 Thread Machiel Richards
Good day all I am hoping someone has had some experience in this to assist me. I have been going through lots of forums and documentation and can find a lot of information on how to setup a master/slave replication on MySQL. The question I have however is how do you fail

Re: master-slave replication sync problems.

2010-08-31 Thread Todd Lyons
On Thu, Aug 26, 2010 at 6:04 AM, Norman Khine wrote: > hello, > i have a working master-slave replication, the problem i find is that > if i restart the MASTER there is a difference in the MASTER_LOG_FILE > and MASTER_LOG_POS on the SLAVE. > > what is the correct way to keep

Re: master-slave replication sync problems.

2010-08-26 Thread Shawn Green (MySQL)
* 1. row *** Slave_IO_Running: Yes Slave_SQL_Running: Yes -Original Message- From: Norman Khine [mailto:nor...@khine.net] Sent: Thursday, August 26, 2010 6:05 AM To: mysql@lists.mysql.com Subject: master-slave replication sync proble

RE: master-slave replication sync problems.

2010-08-26 Thread Daevid Vincent
Slave_IO_Running: Yes Slave_SQL_Running: Yes > -Original Message- > From: Norman Khine [mailto:nor...@khine.net] > Sent: Thursday, August 26, 2010 6:05 AM > To: mysql@lists.mysql.com > Subject: master-slave replication sync problems. > > hello, > i have a wor

Re: master-slave replication sync problems.

2010-08-26 Thread a . smith
Quoting jitendra ranjan : Hi,   The best way to use sync the master and slave is using mk-checksum tools. just google it and use the the tools for online sync of master and slave.   Jeetendra Ranjan MySQL DBA Yes, data integrity isnt guaranteed with MySQL replication. So if you want to b

Re: master-slave replication sync problems.

2010-08-26 Thread a . smith
Quoting Ananda Kumar : Smith, I never said, this wont work.Some times, there are chances of lossing data. regards anandkl If you have experience of this fair enough. Theres no reason it should make any difference, as everything is based upon the binlog file and position... -- MySQL

Re: master-slave replication sync problems.

2010-08-26 Thread jitendra ranjan
Hi,   The best way to use sync the master and slave is using mk-checksum tools. just google it and use the the tools for online sync of master and slave.   Jeetendra Ranjan MySQL DBA --- On Thu, 26/8/10, Norman Khine wrote: From: Norman Khine Subject: master-slave replication sync problems

Re: master-slave replication sync problems.

2010-08-26 Thread Ananda Kumar
Smith, I never said, this wont work.Some times, there are chances of lossing data. regards anandkl On Thu, Aug 26, 2010 at 8:48 PM, wrote: > Quoting Norman Khine : > > i see, so the best is to just stop slave and then check the master >> status, and when the master status syncs then i start t

Re: master-slave replication sync problems.

2010-08-26 Thread a . smith
Quoting Norman Khine : i see, so the best is to just stop slave and then check the master status, and when the master status syncs then i start the slave? Well Im willing to hear from others experiences, but if you really shouldnt have to do anything. If you want you can issue a stop slav

Re: master-slave replication sync problems.

2010-08-26 Thread Ananda Kumar
Yes, You need to note down the master bin-log file name and position on the slave, this is a must. regards anandkl On Thu, Aug 26, 2010 at 7:34 PM, Norman Khine wrote: > i see, so the best is to just stop slave and then check the master > status, and when the master status syncs then i start

Re: master-slave replication sync problems.

2010-08-26 Thread Norman Khine
i see, so the best is to just stop slave and then check the master status, and when the master status syncs then i start the slave? On Thu, Aug 26, 2010 at 3:09 PM, wrote: > That is really bad, you will loose changes. > > You shouldnt have to do anything when rebooting either the master or sla

Re: master-slave replication sync problems.

2010-08-26 Thread Ananda Kumar
True, But some times, this does not work and u need to know the master bin-log file and position to start, so that there is no loss of data. regards anandkl On Thu, Aug 26, 2010 at 6:39 PM, wrote: > That is really bad, you will loose changes. > > You shouldnt have to do anything when rebooting

Re: master-slave replication sync problems.

2010-08-26 Thread a . smith
That is really bad, you will loose changes. You shouldnt have to do anything when rebooting either the master or slave. If the master is down, then the slave recieves no updates. If the slave is down, when it comes back up it checks the master log pos and plays thro any changes that are nec

Re: master-slave replication sync problems.

2010-08-26 Thread Ananda Kumar
complete sync with master... Here u will see the master log file and position. U need to use this, next time u start ur slave to sync with master. regards anandkl On Thu, Aug 26, 2010 at 6:34 PM, Norman Khine wrote: > hello, > i have a working master-slave replication, the problem i find is tha

master-slave replication sync problems.

2010-08-26 Thread Norman Khine
hello, i have a working master-slave replication, the problem i find is that if i restart the MASTER there is a difference in the MASTER_LOG_FILE and MASTER_LOG_POS on the SLAVE. what is the correct way to keep the two slaves in sync even after i restart the server. the way i do it now is to

Re: Master/Slave Replication Question

2009-09-25 Thread Tim Gustafson
n read-heavy environments. As I mentioned before, my main goal here is geographic redundancy, load balancing and the ability to use applications that aren't really designed to be used with master/slave replication (Drupal, WordPress, etc) without having to modify those applications.

Re: Master/Slave Replication Question

2009-09-25 Thread Tim Gustafson
ecords for 1.2.3.4, 2.3.4.5 and 3.4.5.6. Using round-robin DNS, the connections for clients are distributed across all three geographically redundant servers using poor-man's load balancing. > Geographical redundancy is different: a dns record with a zero > ttl, with a master->sla

RE: Master/Slave Replication Question

2009-09-25 Thread Gavin Towey
ications will never support it, and therefore never be able to be geographically redundant." Geographical redundancy is different: a dns record with a zero ttl, with a master->slave replication setup. Point the record a the master and if it fails, change the dns entry to point to the slave.

Re: Master/Slave Replication Question

2009-09-25 Thread Tim Gustafson
> Moreover, it works today as opposed to waiting until the end > of time for the database developers to add features like that > (which mysql cluster is already a distributed database, and > the devs have said they're not interested in trying to turn > the regular mysql into a distributed product,

RE: Master/Slave Replication Question

2009-09-25 Thread Gavin Towey
ey were designed to scale well. Regards, Gavin Towey -Original Message- From: Tim Gustafson [mailto:t...@soe.ucsc.edu] Sent: Friday, September 25, 2009 2:44 PM To: mysql@lists.mysql.com Subject: Re: Master/Slave Replication Question > Another thought would be at the application laye

Re: Master/Slave Replication Question

2009-09-25 Thread Tim Gustafson
> Another thought would be at the application layer, sending > all the updates (insert,delete, update, etc) to server A, > and the selects to the local slave servers. This has been suggested before, and I'm totally against it. Applications like PHPBB, Drupal, WordPress, etc can't be easily confi

Master/Slave Replication Question

2009-09-24 Thread Tim Gustafson
Hi, I'm a big fan of mySQL's multi-master replication, but I've run into gotchas over the years. Off the top of my head, I can think of: - auto_increment complications, - if you have a->b->c->a, it's not exactly graceful to insert a "d" server for a->b->c->d->a - if you have a->b->c->a and b

Re: On fighting with master-slave replication lag

2008-12-30 Thread Moon's Father
Yeah. You should use mk-heartbeat, it's the best tool for this situation that I have seen before. On Wed, Dec 24, 2008 at 10:06 PM, Baron Schwartz wrote: > On Wed, Dec 24, 2008 at 2:31 AM, Jake Maul wrote: > > Slightly more complicated (and also probably more accurate- the time > > reported by

RE: On fighting with master-slave replication lag

2008-12-30 Thread xufeng
il.com [mailto:baron.schwa...@gmail.com] On Behalf > Of Baron Schwartz > Sent: 2008年12月26日 0:56 > To: xufeng > Cc: Jake Maul; claudio.na...@gmail.com; andy-li...@networkmail.eu; > mysql@lists.mysql.com > Subject: Re: On fighting with master-slave replication lag > > 2008/12/24 xufen

Re: On fighting with master-slave replication lag

2008-12-25 Thread Baron Schwartz
2008/12/24 xufeng : > > >> -Original Message- >> From: baron.schwa...@gmail.com [mailto:baron.schwa...@gmail.com] On Behalf >> Of Baron Schwartz >> Sent: 2008年12月24日 22:06 >> To: Jake Maul >> Cc: mysql@lists.mysql.com >> Subject: Re: On fig

Re: On fighting with master-slave replication lag

2008-12-25 Thread Andy Shellam
your great help. >> Yours >> Xu Feng >> >> >> >>> -Original Message- >>> From: xufeng [mailto:xuf...@yuanjie.net] >>> Sent: 2008年12月25日 10:13 >>> To: 'Baron Schwartz'; 'Jake Maul'; claudio.na..

Re: On fighting with master-slave replication lag

2008-12-25 Thread Andy Shellam
tworkmail.eu; claudio.na...@gmail.com >> Cc: mysql@lists.mysql.com >> Subject: RE: On fighting with master-slave replication lag >> >> >> >> >>> -Original Message- >>> From: baron.schwa...@gmail.com [mailto:baron.schwa...@gmail.com] On >

RE: On fighting with master-slave replication lag

2008-12-24 Thread xufeng
etworkmail.eu; claudio.na...@gmail.com > Cc: mysql@lists.mysql.com > Subject: RE: On fighting with master-slave replication lag > > > > > -Original Message- > > From: baron.schwa...@gmail.com [mailto:baron.schwa...@gmail.com] On Behalf > > Of Baron Schwartz

RE: On fighting with master-slave replication lag

2008-12-24 Thread xufeng
> -Original Message- > From: baron.schwa...@gmail.com [mailto:baron.schwa...@gmail.com] On Behalf > Of Baron Schwartz > Sent: 2008年12月24日 22:06 > To: Jake Maul > Cc: mysql@lists.mysql.com > Subject: Re: On fighting with master-slave replication lag > > On W

Re: On fighting with master-slave replication lag

2008-12-24 Thread Baron Schwartz
On Wed, Dec 24, 2008 at 2:31 AM, Jake Maul wrote: > Slightly more complicated (and also probably more accurate- the time > reported by show slave status is known to be unreliable in some cases) > would be a script that inserts a row into a table, then check the > slave over and over till it arrive

Re: On fighting with master-slave replication lag

2008-12-23 Thread Jake Maul
in maatkit which does replication tracking, although I've not yet used it. Judging by the other tools in that package though, it's probably pretty decent :). Jake On Mon, Dec 22, 2008 at 8:26 PM, xufeng wrote: > Hello everyone, > In my production system, I set up MySQL 5.0.67 master/

Re: On fighting with master-slave replication lag

2008-12-23 Thread Chandru
Hi, I use Mycat to monitor more than 300 servers using a single config file. It can be used only for replication monitoring though Regards, Chandru www.mafiree.com On Tue, Dec 23, 2008 at 10:51 PM, Andy Shellam wrote: > Hi > > I would suggest a Nagios monitoring system, useful for many di

Re: On fighting with master-slave replication lag

2008-12-23 Thread Andy Shellam
Hi I would suggest a Nagios monitoring system, useful for many different checks and with plugins to check also mysql replication. I'll second this. The standard check_mysql plugin included with Nagios allows you to monitor a MySQL slave and alert when the lag behind the master is larger

Re: On fighting with master-slave replication lag

2008-12-23 Thread Claudio Nanni
I would suggest a Nagios monitoring system, useful for many different checks and with plugins to check also mysql replication. Aloha! Claudio Nanni 2008/12/23 xufeng > Hello everyone, > In my production system, I set up MySQL 5.0.67 master/slave replication, > and > recently I met

On fighting with master-slave replication lag

2008-12-22 Thread xufeng
Hello everyone, In my production system, I set up MySQL 5.0.67 master/slave replication, and recently I met with master/slave replication lag problem. Is there a good monitoring tool or some other tools to detect and discover this latency on slave? Any suggestion is welcomed. Thank you in advance

Re: Master-Slave replication error: Last_Errno: 1146

2008-05-22 Thread Mike
On Thu, May 22, 2008 at 5:36 PM, Salah Nait-Mouloud < [EMAIL PROTECTED]> wrote: > Hi all. > > I have 2 MySQL servers. > One master and one slave. > In order to add new slave server, and because i can't stop the master one, > i > have tried this: > > http://forums.mysql.com/read.php?26,99846,102058

Master-Slave replication error: Last_Errno: 1146

2008-05-22 Thread Salah Nait-Mouloud
Hi all. I have 2 MySQL servers. One master and one slave. In order to add new slave server, and because i can't stop the master one, i have tried this: http://forums.mysql.com/read.php?26,99846,102058 " *You don't have to modify the other slaves configuration. What you need to do is obtain a sna

Re: master - slave replication - slave not updating

2008-05-16 Thread Juan Eduardo Moreno
Hi Tom, Your master binary log start with mysql-bin.03, then, your insert ( or update) in the master could be in mysql-bin.02 or 1. Please, reload your binary logs again from the beginning ( put mysql-bin.02 or 1, ). Your insert or update could be in one of this files. Regards, Juan

Re: master - slave replication - slave not updating

2008-05-16 Thread Tom Brown
Yes thanks - i have done that and restarted the slave and _some_ tables now appear to update but others dont eg master: mysql> select count(*) from tbl_checkcommand; +--+ | count(*) | +--+ | 30 | +--+ 1 row in set (0.00 sec) slave: mysql> select count(*) from

Re: master - slave replication - slave not updating

2008-05-16 Thread Tom Brown
The error 1062 you could skipped in the slave modifying your my.cnf ( slave side) using : slave-skip-errors=1062 This error on duplicated records, normally is problem in binarylogs transfer data. But, anyway, please confer that the data exist in the slave. Yes thanks - i have done tha

Re: master - slave replication - slave not updating

2008-05-16 Thread Juan Eduardo Moreno
Hi Tom, The error 1062 you could skipped in the slave modifying your my.cnf ( slave side) using : slave-skip-errors=1062 This error on duplicated records, normally is problem in binarylogs transfer data. But, anyway, please confer that the data exist in the slave. Regards, Juan On Fri, May

master - slave replication - slave not updating

2008-05-16 Thread Tom Brown
Hi I am running 4.1.20 as this is the stock version in RHEL4 u5 and i have setup a master/slave combination. Updates at first appeared to work as creating and inserting into the master created the db's on the slave etc. I have noticed however that data in the master is not making its way to t

Re: MySQL Master Slave Replication

2008-04-07 Thread Néstor
ound out that my problem was that my firewall was not > > allowing my to computers to talk to each other on port 3306. I use the > > link you sent but this are th eoriginal links I used: > > 1) Master/Slave replication > > > > > > http://crazytoon.com/2008/01

Re: MySQL Master Slave Replication

2008-04-07 Thread Kaushal Shriyan
g my to computers to talk to each other on port 3306. I use the > > link you sent but this are th eoriginal links I used: > > 1) Master/Slave replication > > > > > > http://crazytoon.com/2008/01/29/mysql-how-do-you-set-up-masterslave-replication-in-mysql-centos-rhel-f

Re: MySQL Master Slave Replication

2008-04-07 Thread Kaushal Shriyan
I will try this tomorrow and let you know. > > > > > > > > > Néstor :-) > > > > > > > > > > > > On Sun, Apr 6, 2008 at 10:52 PM, Kaushal Shriyan < > > [EMAIL PROTECTED]> > > > wrote: > > > > > > > > > &

Fwd: MySQL Master Slave Replication

2008-04-07 Thread Néstor
Kaushal, That worked. I found out that my problem was that my firewall was not allowing my to computers to talk to each other on port 3306. I use the link you sent but this are th eoriginal links I used: 1) Master/Slave replication http://crazytoon.com/2008/01/29/mysql-how-do-you-set-up

Re: MySQL Master Slave Replication

2008-04-07 Thread Norbert Tretkowski
Am Montag, den 07.04.2008, 11:22 +0530 schrieb Kaushal Shriyan: > is this a correct documentation > http://howtoforge.com/mysql_master_master_replication for Master Slave > Replication No, it's not. As the title says, it describes Master-Master replication, not Master-Slave replicat

Re: MySQL Master Slave Replication

2008-04-07 Thread Kaushal Shriyan
t 10:52 PM, Kaushal Shriyan <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > > > hi > > > > > > is this a correct documentation > > > http://howtoforge.com/mysql_master_master_replication for Master Slave > > &

Re: MySQL Master Slave Replication

2008-04-06 Thread Néstor
AIL PROTECTED]> wrote: > hi > > is this a correct documentation > http://howtoforge.com/mysql_master_master_replication for Master Slave > Replication > > Thanks and Regards > > Kaushal > > -- > MySQL General Mailing List > For list archives: http://li

MySQL Master Slave Replication

2008-04-06 Thread Kaushal Shriyan
hi is this a correct documentation http://howtoforge.com/mysql_master_master_replication for Master Slave Replication Thanks and Regards Kaushal -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: master/slave replication - errors!!

2007-11-22 Thread Baron Schwartz
bruce wrote: hi.. doing a simple test of master/slave replication, using mysql. i have two test systems: master - foo (192.168.10.13) slave - cat (192.168.20.20) on both machines, i created a testmasterdb. on the master, i populated the tbl within the db with some test data. there are no

master/slave replication - errors!!

2007-11-21 Thread bruce
hi.. doing a simple test of master/slave replication, using mysql. i have two test systems: master - foo (192.168.10.13) slave - cat (192.168.20.20) on both machines, i created a testmasterdb. on the master, i populated the tbl within the db with some test data. there are no tbls in the

RE: Problem with master/slave replication

2007-11-16 Thread Mike Johnson
From: B. Keith Murphy [mailto:[EMAIL PROTECTED] > show slave status after it stops copying should give you some type of > error information about the failure. What does it show? In addition to the error, what do the following fields show? Slave_IO_Running Slave_SQL_Running Seconds_Behind_Mast

Re: Problem with master/slave replication

2007-11-16 Thread B. Keith Murphy
Ryan, show slave status after it stops copying should give you some type of error information about the failure. What does it show? Keith Ryan Klein wrote: I am having an issue that I cannot determine the cause. We have a master server that is actually a production server and a slave server

Problem with master/slave replication

2007-11-16 Thread Ryan Klein
I am having an issue that I cannot determine the cause. We have a master server that is actually a production server and a slave server that is a fall back but after around 10 days, it stops coping data and the servers fall out of sync. Here is my my.cnf file for the master server: key_buffer

Re: Master/Slave Replication

2003-10-18 Thread Paul DuBois
At 14:11 -0400 10/18/03, DePhillips, Michael P wrote: Hi List I'm having trouble start a slave. All seems to be configured well as per show slave status, I issue a mysql> slave start; Query OK, 0 rows affected (0.00 sec) and nothing happens, show slave status sill says slave is not running. Any

Master/Slave Replication

2003-10-18 Thread DePhillips, Michael P
Hi List I'm having trouble start a slave. All seems to be configured well as per show slave status, I issue a mysql> slave start; Query OK, 0 rows affected (0.00 sec) and nothing happens, show slave status sill says slave is not running. Any insght?? Thanks mike -- MySQL General Mailing Li

RE: Master-Slave Replication

2003-08-25 Thread Sanya Shaik
ave is connected waiting for binlog updates. Make sure the master is replicating.. Etc. -->-Original Message- -->From: Sanya Shaik [mailto:[EMAIL PROTECTED] -->Sent: Thursday, August 21, 2003 12:51 PM -->To: [EMAIL PROTECTED] -->Subject: Master-Slave Replication --> -->Hi

RE: Master-Slave Replication

2003-08-21 Thread Dathan Vance Pattishall
TECTED] -->Sent: Thursday, August 21, 2003 12:51 PM -->To: [EMAIL PROTECTED] -->Subject: Master-Slave Replication --> -->Hi all, --> --> Thanks for the answers for Master-Master replication. Right now i want -->to try the Master-Slave replication first and the

Re: Master-Slave Replication

2003-08-21 Thread Miguel Perez
Here is a good URL, maybe it can help you to deploy your Master-Slave solution. URL: http://mysql.us.themoes.org/doc/en/Replication_HOWTO.html Greetings Mikel From: Sanya Shaik <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Master-Slave Replication Date: Thu, 21 Aug 2003 12:50:31

Master-Slave Replication

2003-08-21 Thread Sanya Shaik
Hi all, Thanks for the answers for Master-Master replication. Right now i want to try the Master-Slave replication first and then do a circular replication. Unfortunately, I am facing problems with updating slave automatically. I started the slave and loaded the data from the master

Re: Compressed MASTER-SLAVE replication

2002-04-27 Thread Jeremy Zawodny
On Sat, Apr 27, 2002 at 07:40:51PM -, [EMAIL PROTECTED] wrote: > Hi Jeremy, > > you wrote: > > > If you send the traffic thru an ecnrypted tunnel, such as with SSH, > > you'll get decent compression and security to boot! :-) > > Yep, that's a bright idea in fact... I wanted to make sure tha

Re: Compressed MASTER-SLAVE replication

2002-04-27 Thread mlrecv
Hi Jeremy, you wrote: > If you send the traffic thru an ecnrypted tunnel, such as with SSH, > you'll get decent compression and security to boot! :-) Yep, that's a bright idea in fact... I wanted to make sure that we didn't already have that feature built-in. Now I am just curious to know if t

Re: Compressed MASTER-SLAVE replication

2002-04-27 Thread Jeremy Zawodny
On Sat, Apr 27, 2002 at 04:28:27PM -, [EMAIL PROTECTED] wrote: > Hi there, > > I am wondering if there's a way of estabilishing a compressed link > between a master and slave mysql servers. I know that a compressed > client-server protocol exists. Do we have anything similar for > replicati

Compressed MASTER-SLAVE replication

2002-04-27 Thread mlrecv
Hi there, I am wondering if there's a way of estabilishing a compressed link between a master and slave mysql servers. I know that a compressed client-server protocol exists. Do we have anything similar for replication? When replicated data is mostly text, such an option would save a lot of time,