<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Replication</title>
        <description>Forum for MySQL Replication.</description>
        <link>http://forums.mysql.com/list.php?26</link>
        <lastBuildDate>Thu, 23 May 2013 09:31:26 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?26,587138,587138#msg-587138</guid>
            <title>Master freezes when replication starts to write a relay-log (no replies)</title>
            <link>http://forums.mysql.com/read.php?26,587138,587138#msg-587138</link>
            <description><![CDATA[ Hello,<br />
<br />
I have a strange replication problem with a master and its slave. <br />
Every time I import a big file into the database which should be replicated by the slave the master freezes when it has finished writing the “mysql-bin”-file and starts to transfer data to the replication-slave.<br />
<br />
The import I do with a simple “CREATE TABLE … SELECT * FROM …”<br />
<br />
The import works fine, i.e. the data will be replicated and the master doesn’t freeze, if the data size doesn’t exceed 400-500 MB. The import also works fine if the replication is not running, but the option “log_bin” is on. If the replication slave is running the import fails in case of data that exceeds 400-500 MB  in eight of ten cases.<br />
<br />
The master and slave are on two different servers and connected over 1 Gbit network. I use the 5.1.69 MySQL-Version and as option-file I took the standard huge-my.ini. The table engine is MyISAM. The master has 8 Gb RAM and about 800GB free disk space. The slave has also 8 GB RAM and about 2 TB free disk space. <br />
The servers are also not much loaded. The master has about 20-30 connections which are mostly SELECTs. The slave is used as a backup storage and there is no traffic except the replication process. <br />
<br />
Does anybody know where the problem is?!<br />
<br />
I would be very grateful if somebody could help me! Thank you very much in advance!]]></description>
            <dc:creator>Edward Lee</dc:creator>
            <category>Replication</category>
            <pubDate>Thu, 23 May 2013 09:12:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,586406,586406#msg-586406</guid>
            <title>Last_Errno: 1032, Could not execute Update_rows event on table jiradb.userhistoryitem; (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,586406,586406#msg-586406</link>
            <description><![CDATA[ MySql Replication is not working below is the error, This is very urjent to resolved kindly help me.<br />
<br />
mysql&gt; show slave status\G<br />
*************************** 1. row ***************************<br />
               Slave_IO_State: Waiting for master to send event<br />
                  Master_Host: RCOLNX89194.noam.corp.frk.com<br />
                  Master_User: repl<br />
                  Master_Port: 3306<br />
                Connect_Retry: 60<br />
              Master_Log_File: mysql-bin.000009<br />
          Read_Master_Log_Pos: 32156874<br />
               Relay_Log_File: rcovlnx0124-relay-bin.000005<br />
                Relay_Log_Pos: 168612<br />
        Relay_Master_Log_File: mysql-bin.000009<br />
             Slave_IO_Running: Yes<br />
            Slave_SQL_Running: No<br />
              Replicate_Do_DB: jiradb,crowd<br />
          Replicate_Ignore_DB:<br />
           Replicate_Do_Table:<br />
       Replicate_Ignore_Table:<br />
      Replicate_Wild_Do_Table:<br />
  Replicate_Wild_Ignore_Table:<br />
                   Last_Errno: 1032<br />
                   Last_Error: Could not execute Update_rows event on table jiradb.userhistoryitem; Ca                                                                                               n't find record in 'userhistoryitem', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event'                                                                                               s master log mysql-bin.000009, end_log_pos 4190003<br />
                 Skip_Counter: 0<br />
          Exec_Master_Log_Pos: 4189741<br />
              Relay_Log_Space: 28139415<br />
              Until_Condition: None<br />
               Until_Log_File:<br />
                Until_Log_Pos: 0<br />
           Master_SSL_Allowed: No<br />
           Master_SSL_CA_File:<br />
           Master_SSL_CA_Path:<br />
              Master_SSL_Cert:<br />
            Master_SSL_Cipher:<br />
               Master_SSL_Key:<br />
        Seconds_Behind_Master: NULL<br />
Master_SSL_Verify_Server_Cert: No<br />
                Last_IO_Errno: 0<br />
                Last_IO_Error:<br />
               Last_SQL_Errno: 1032<br />
               Last_SQL_Error: Could not execute Update_rows event on table jiradb.userhistoryitem; Ca                                                                                               n't find record in 'userhistoryitem', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event'                                                                                               s master log mysql-bin.000009, end_log_pos 4190003<br />
  Replicate_Ignore_Server_Ids:<br />
             Master_Server_Id: 1<br />
                  Master_UUID: f5095cc4-ad21-11e2-a67e-3440b5e37058<br />
             Master_Info_File: /usr/data/mysql/master.info<br />
                    SQL_Delay: 0<br />
          SQL_Remaining_Delay: NULL<br />
      Slave_SQL_Running_State:<br />
           Master_Retry_Count: 86400<br />
                  Master_Bind:<br />
      Last_IO_Error_Timestamp:<br />
     Last_SQL_Error_Timestamp: 130514 03:01:56<br />
               Master_SSL_Crl:<br />
           Master_SSL_Crlpath:<br />
           Retrieved_Gtid_Set:<br />
            Executed_Gtid_Set:<br />
                Auto_Position: 0<br />
1 row in set (0.00 sec)]]></description>
            <dc:creator>Raja Tadi</dc:creator>
            <category>Replication</category>
            <pubDate>Fri, 17 May 2013 04:26:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,585931,585931#msg-585931</guid>
            <title>Replication error -Lost connection to MySQL server during query on query 0 (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,585931,585931#msg-585931</link>
            <description><![CDATA[ Hi,<br />
Intermittently I keep seeing this below error on our production servers for replication  error  and do not know what could be causing this one. And also do not understand why do I see &quot;query on query 0&quot; in the error. I do not see this error register  in the error log so no clue whats causing it. ( mysql version:5.0.91-community-log/statement based replication).  Please let me know if any of you have seen this error and what to do to fix it. Thanks in advance. <br />
<br />
ERROR: extractor: Got error reading packet from server: Lost connection to MySQL server during query on query 0]]></description>
            <dc:creator>neelima pulikanti</dc:creator>
            <category>Replication</category>
            <pubDate>Sun, 12 May 2013 18:32:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,585817,585817#msg-585817</guid>
            <title>Why my slave lost data occationally? (3 replies)</title>
            <link>http://forums.mysql.com/read.php?26,585817,585817#msg-585817</link>
            <description><![CDATA[ Hi,<br />
I have a question about replication and need some suggestions.<br />
We have many master-slave database groups in use now.<br />
But, our user complian that the data was lost in slave side sometimes.<br />
There is no error message and no crash before the data lost.<br />
Is there any suggestion can let me find out the root cause of this??<br />
Thanks!!]]></description>
            <dc:creator>LIAO CHIHYUAN_LIAO</dc:creator>
            <category>Replication</category>
            <pubDate>Sun, 12 May 2013 18:34:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,585747,585747#msg-585747</guid>
            <title>Foreign Key errors on slave after import from another slave (6 replies)</title>
            <link>http://forums.mysql.com/read.php?26,585747,585747#msg-585747</link>
            <description><![CDATA[ We have a master and a couple slaves. I was trying to refresh a slave that had been turned of a while ago. I took a backup of another slave and expected that just importing/setting binlog pos would work fine. Unfortunately it just seems to end in FK errors.<br />
<br />
My procedure was as follows:<br />
<br />
1) I stopped replication to one of the slaves (so no writes)<br />
<br />
2) mysqldump -u root -pxxxx --single-transaction dbname &gt; dump.sql<br />
<br />
2) I took note of the binlog filename and file_pos.<br />
&quot;show slave status &gt; slave.txt&quot;<br />
<br />
3) The import to the new slave went without errors. (no FK errors etc)<br />
mysql -u root dbname &lt; dump.sql<br />
<br />
4) I set the binfilename and binlog pos etc to match where the other slave was.<br />
<br />
Upon starting the slave I just ended up with constant FK errors.<br />
<br />
How is it possible to dump/restore a slave with FKs?<br />
<br />
Thanks!]]></description>
            <dc:creator>Alexander Spitzer</dc:creator>
            <category>Replication</category>
            <pubDate>Sat, 18 May 2013 05:58:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,585435,585435#msg-585435</guid>
            <title>Duplicating large database (4 replies)</title>
            <link>http://forums.mysql.com/read.php?26,585435,585435#msg-585435</link>
            <description><![CDATA[ Please let me know if this is not the correct area to post my question.<br />
<br />
I need to make several copies of a large database on a test server so that I can test and benchmark different configurations of partitioning and indexes.<br />
<br />
The db I'm working with is about 800GB.  I've loaded one copy of it so far using the standard dump/restore process.  The loading of the data alone took 46 hours and I'm looking for a better/faster method.]]></description>
            <dc:creator>Ron Bergin</dc:creator>
            <category>Replication</category>
            <pubDate>Sun, 05 May 2013 20:46:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,585176,585176#msg-585176</guid>
            <title>Master updates Slave but not Master itself (5 replies)</title>
            <link>http://forums.mysql.com/read.php?26,585176,585176#msg-585176</link>
            <description><![CDATA[ I have a setup master/slave in which applications are pointed only to master. Yesterday Master had got crashed due to &quot;multi bit error on dimm detected&quot; in Front indication panel in orange color.<br />
<br />
After reboot I see the master went for recovery then it came up and application started to use the Master normally but still the err msg exist in Front indication panel. But now the slave had stuck out due to primary key constraint for a table.<br />
<br />
The problem I face is master has a table data until what exist in binlog of master. But slave has the table data what is not in master binlog. Below is the table details when compared to Master table and Slave table.<br />
<br />
Last info in binlog timestamp is 2013-04-29 02:13:11 <br />
System shut down timestamp 2013-04-29 02:54         <br />
<br />
            mysql&gt; select * from audit where id=11298907;<br />
            ------------------------------------------------------------<br />
            | id     | ipaddress      | dated        | msisdn  |<br />
            +----------+----------------+-------------------------------<br />
            |11298907 | 82.25.226.183  | 2013-04-29 02:13:11 | 998282821|<br />
            -----------------------------------------------------------<br />
            mysql&gt; select * from audit where id &gt; 11298907 limit 1;<br />
<br />
            -----------------------------------------------------------<br />
            | id     | ipaddress      | dated        |msisdn  |<br />
            +----------+----------------+------------------------------<br />
            |11298908 | 82.25.226.183 | 2013-04-29 04:31:13 | 992828111|<br />
            ------------------------------------------------------------<br />
<br />
            On Slave<br />
            ==========<br />
<br />
            mysql&gt; select * from audit where id=11298907;<br />
            ------------------------------------------------------------<br />
            | id     | ipaddress      | dated        | msisdn  |<br />
            +----------+----------------+-------------------------------<br />
            |11298907 | 82.25.226.183  | 2013-04-29 02:13:11 | 998282821|<br />
            -----------------------------------------------------------<br />
<br />
<br />
<br />
            mysql&gt; select * from audit where id &gt; 11298907 limit 1;<br />
<br />
            -----------------------------------------------------------<br />
            | id     | ipaddress      | dated        |msisdn  |<br />
            +--------+----------------+---------------------------------<br />
            |11298908 | 82.25.226.183 | 2013-04-29 02:13:12 | 762616173|<br />
            ------------------------------------------------------------<br />
Both the servers are ntp synched with GST. And they remain same after Master reboot too. It took almost 2 hrs to bring up Master Server. How come only slave can have the data that Master is not aware of? Please have someone come accross such a thing?]]></description>
            <dc:creator>Mannoj Kumar</dc:creator>
            <category>Replication</category>
            <pubDate>Wed, 08 May 2013 01:51:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,585149,585149#msg-585149</guid>
            <title>Replication for Oracle and MySQL - Now 100% Open Source (no replies)</title>
            <link>http://forums.mysql.com/read.php?26,585149,585149#msg-585149</link>
            <description><![CDATA[ Oracle is the most powerful DBMS in the world. However, Oracle's expensive and complex replication makes it difficult to build highly available applications or move data in real-time to data warehouses and popular databases like MySQL.<br />
<br />
In this webinar you will learn how Continuent Tungsten solves problems with Oracle replication at a fraction of the cost of other solutions and with less management overhead too – picture Oracle GoldenGate without the price tag! We will demo constructing a highly available site using Oracle-to-Oracle replication. We will then show you how to replicate data in real time from Oracle to MySQL as well as load a data warehouse.<br />
<br />
You may obtain open source Tungsten Replicator at <a href="http://code.google.com/p/tungsten-replicator"  rel="nofollow">http://code.google.com/p/tungsten-replicator</a>. Alternatively you may also obtain Continuent Tungsten, full-featured solution with 24/7 support, from Continuent at <a href="mailto:&#115;&#97;&#108;&#101;&#115;&#64;&#99;&#111;&#110;&#116;&#105;&#110;&#117;&#101;&#110;&#116;&#46;&#99;&#111;&#109;">&#115;&#97;&#108;&#101;&#115;&#64;&#99;&#111;&#110;&#116;&#105;&#110;&#117;&#101;&#110;&#116;&#46;&#99;&#111;&#109;</a><br />
<br />
Register for a session now by clicking a date below:<br />
<br />
• Thursday, May 2, 2013 @ 10:00 AM PDT/11 AM EDT, <a href="https://www1.gotomeeting.com/register/256313281"  rel="nofollow">https://www1.gotomeeting.com/register/256313281</a><br />
• Tuesday, May 7, 2013 @ 10:00 AM EDT/15:00 BST/16:00 CEST, <a href="https://www1.gotomeeting.com/register/394798433"  rel="nofollow">https://www1.gotomeeting.com/register/394798433</a><br />
<br />
Once registered you will receive an email c]]></description>
            <dc:creator>Petri Virsunen</dc:creator>
            <category>Replication</category>
            <pubDate>Mon, 29 Apr 2013 18:43:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,585105,585105#msg-585105</guid>
            <title>adding db to an established master - master configuration. (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,585105,585105#msg-585105</link>
            <description><![CDATA[ I have a working master-master mysql environment. I would like to add two (2) more databases into the replication process, (or for that mater any db I add to the server). With no downtime to the db would be my preference. <br />
<br />
RHEL 5 <br />
MySQL 5.1.41 community<br />
<br />
Here is the binlog section of my.cnf that I currently have configured, I use the innodb engine.. <br />
<br />
## BINLOG SETTINGS<br />
log-bin                         = /var/log/mysql/mydb1-bin<br />
log-bin-index                   = /var/log/mysql/mydb1-bin.index<br />
binlog-do-db                    = proddb<br />
binlog-ignore-db                = mysql<br />
expire_logs_days                = 4<br />
sync_binlog                     = 1<br />
<br />
<br />
One of the two databases I need added to the replication process has data and is in a production state while the other is yet to be created. <br />
<br />
Ideally I'm hoping for some tool or if anyone has a devised set of steps to just add stuff into the replication mix. I'm hoping to do this with no downtime to the databases in question. <br />
<br />
Thanks for any pointers... Kevin]]></description>
            <dc:creator>kevin foote</dc:creator>
            <category>Replication</category>
            <pubDate>Wed, 01 May 2013 04:29:35 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,584772,584772#msg-584772</guid>
            <title>binlog overflow (4 replies)</title>
            <link>http://forums.mysql.com/read.php?26,584772,584772#msg-584772</link>
            <description><![CDATA[ Hi,<br />
<br />
I am using Binlog to sync between master and slave.<br />
<br />
After loading 20GB data into master, I found some data lost in slave. <br />
In master, there is warning like replication overflow. <br />
<br />
I guess the binlog writting speed doesn't match the speed of data loading. So, there is some data lost.<br />
<br />
Is there any way to speedup binlog writting, or other ways to solve this problem?<br />
<br />
<br />
mysql&gt; show variables like '%binlog%';<br />
+-----------------------------------------+----------------------+<br />
| Variable_name                           | Value                |<br />
+-----------------------------------------+----------------------+<br />
| binlog_cache_size                       | 32768                |<br />
| binlog_direct_non_transactional_updates | OFF                  |<br />
| binlog_format                           | MIXED                |<br />
| max_binlog_cache_size                   | 18446744073709547520 |<br />
| max_binlog_size                         | 1073741824           |<br />
| ndb_log_binlog_index                    | ON                   |<br />
| ndb_report_thresh_binlog_epoch_slip     | 3                    |<br />
| ndb_report_thresh_binlog_mem_usage      | 10                   |<br />
| sync_binlog                             | 0                    |<br />
+-----------------------------------------+----------------------+<br />
<br />
Thanks<br />
<br />
Alex]]></description>
            <dc:creator>Alax James</dc:creator>
            <category>Replication</category>
            <pubDate>Fri, 03 May 2013 08:13:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,584626,584626#msg-584626</guid>
            <title>Huge seconds_behind_master (3 replies)</title>
            <link>http://forums.mysql.com/read.php?26,584626,584626#msg-584626</link>
            <description><![CDATA[ Hi,<br />
<br />
I am using mysql 5.5.16 entp with Master Slave replication.<br />
on slave i observe a strange behaviour for seconds_behind_master.<br />
Values fluctuate from huge 10K sec's to Zero in the next second immediately <br />
when i check the slave status.<br />
<br />
Any idea of this intermittent values in second_behind_master???]]></description>
            <dc:creator>sudhakar s</dc:creator>
            <category>Replication</category>
            <pubDate>Wed, 01 May 2013 04:32:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,584574,584574#msg-584574</guid>
            <title>5.6.x and show slave status (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,584574,584574#msg-584574</link>
            <description><![CDATA[ Hi.<br />
<br />
I'm using 5.6.x as a slave to 5.5.x (it's a replication chain).<br />
MTS is off:<br />
<br />
mysql&gt; show variables like '%work%';<br />
+------------------------+-------+<br />
| Variable_name          | Value |<br />
+------------------------+-------+<br />
| skip_networking        | OFF   |<br />
| slave_parallel_workers | 0     |<br />
+------------------------+-------+<br />
2 rows in set (0.01 sec)<br />
<br />
However, when I ussue a 'show slave status' command repeatedly, in the situation when the slave has a lag (for example lost of network connectivity or slave was used for backing up a large database and some tables were locked) the seconds_behind_master field shows different numbers. For example it can show hundreds of seconds and then thousands of seconds, switching between them. Bot numbers decrease until they become 0 at some moment. No question about zero, but why there are two numbers when MTS is off ? I tried to find an answer in Mysql documentation, but didn't succeed.<br />
<br />
Thanks.]]></description>
            <dc:creator>Eugene Zheganin</dc:creator>
            <category>Replication</category>
            <pubDate>Tue, 23 Apr 2013 13:45:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,584570,584570#msg-584570</guid>
            <title>Binlog Dump(Writing to net) is very Slow (8kb/s) (2 replies)</title>
            <link>http://forums.mysql.com/read.php?26,584570,584570#msg-584570</link>
            <description><![CDATA[ Hi,<br />
following Situation:<br />
I have set up a Master-Slave Replication. When I insert/update/delete Rows on the Master the Binlog is written very slow to the Slave (Traffic 8kb/s).<br />
<br />
Show Processlist (on Master) says Binlog Dump Writing to net<br />
on CPU usage is 1%<br />
<br />
Show Processlist (on Slave) says <br />
IO Thread: &quot;Queueing master event to relay log&quot; and <br />
SQL Thread: &quot;Reading event from the relay log&quot; (30%) and &quot;Has read all relay log; waiting for the slave I/O thread to update it&quot; (70%)<br />
<br />
<br />
Master: 5.5.29 on a Windows Server 2008<br />
Slave : 5.5.29 on Ubuntu Server<br />
<br />
Master Configuration:<br />
[...]<br />
server-id = 5<br />
# SAFETY #<br />
max_allowed_packet             = 16M<br />
max_connect_errors             = 1000000<br />
skip_name_resolve<br />
sysdate_is_now                 = 1<br />
innodb                         = FORCE<br />
# BINARY LOGGING #<br />
log_bin                        = &quot;E:/mysql/data/mysql-bin&quot;<br />
expire_logs_days               = 14<br />
sync_binlog                    = 1<br />
sync_master_info               = 1<br />
sync_relay_log                 = 1<br />
sync_relay_log_info            = 1<br />
binlog_format                  = STATEMENT<br />
[...]<br />
<br />
Slave Configuration:<br />
[...]<br />
# SAFETY #<br />
max_allowed_packet             = 16M<br />
max_connect_errors             = 1000000<br />
skip_name_resolve<br />
sql_mode                       = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE<br />
sysdate_is_now                 = 1<br />
innodb                         = FORCE<br />
innodb_strict_mode             = 1<br />
# BINARY LOGGING #<br />
log_bin                        = /var/lib/mysql/mysql-bin<br />
expire_logs_days               = 14<br />
sync_binlog                    = 1<br />
# REPLICATION # Slave<br />
server-id                      = 10<br />
skip_slave_start               = 1<br />
log_slave_updates              = 1<br />
relay_log                      = /var/lib/mysql/relay-bin<br />
slave_net_timeout              = 60<br />
sync_master_info               = 1<br />
sync_relay_log                 = 1<br />
sync_relay_log_info            = 1<br />
binlog_format                  = MIXED<br />
[...]]]></description>
            <dc:creator>ferluszt ferluszt</dc:creator>
            <category>Replication</category>
            <pubDate>Fri, 03 May 2013 03:03:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,583903,583903#msg-583903</guid>
            <title>Got Fatal Error 1236 From Master Reading Data from binary log possibility to loose data/? (12 replies)</title>
            <link>http://forums.mysql.com/read.php?26,583903,583903#msg-583903</link>
            <description><![CDATA[ I got this Fatal Error 1236 I have tried to run this command first stop slave; then change master to master_log_file='mysql-bin.000003',master_log_pos=335782050; then start slave but my slave is still not working. So some post say just move to next log file in my case will be mysql-bin.000004 and pos=0 wouldnt I loose any data here?]]></description>
            <dc:creator>Frwa Onto</dc:creator>
            <category>Replication</category>
            <pubDate>Mon, 22 Apr 2013 13:18:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,583607,583607#msg-583607</guid>
            <title>Replication with two servers (5 replies)</title>
            <link>http://forums.mysql.com/read.php?26,583607,583607#msg-583607</link>
            <description><![CDATA[ hi all,<br />
<br />
I have two servers mysql and I want to configuer a replication between this two servers <br />
but i want to configurer :<br />
<br />
------------------------------------------<br />
server 1 : Master      server 2 : Slave<br />
<br />
and  <br />
<br />
server 2 Master   server 1 : slave <br />
-------------------------------------------<br />
<br />
for the same Data base <br />
<br />
I ask if this is possible or not <br />
<br />
thx for help]]></description>
            <dc:creator>elguesmi elguesmi</dc:creator>
            <category>Replication</category>
            <pubDate>Fri, 12 Apr 2013 02:52:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,583429,583429#msg-583429</guid>
            <title>Failed to open the relay log on Master (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,583429,583429#msg-583429</link>
            <description><![CDATA[ Hi,<br />
<br />
After upgrading to MySQL 5.6.10 on my master and slave machines, I see this error in my master's logs:<br />
<br />
[ERROR] Failed to open the relay log './mysqld-relay-bin.000001' (relay_log_pos 4).<br />
[ERROR] Could not find target log file mentioned in relay log info in the index file './sjvs6-cerberus-relay-bin.index' during relay log initialization.<br />
[ERROR] Failed to initialize the master info structure<br />
<br />
According to the blog post here, this happens when the hostname changes:<br />
<a href="https://blogs.oracle.com/trentlloyd/entry/watch_out_for_hostname_changes"  rel="nofollow">https://blogs.oracle.com/trentlloyd/entry/watch_out_for_hostname_changes</a><br />
I think it's not the hostname that changed, but the settings in my.cnf, because I now have relay logs with 3 different prefixes in /usr/lib/mysql, like:<br />
<br />
mysqld-relay-bin.000001<br />
mysql-relay-bin.000001<br />
sjvs6-cerberus-relay-bin.000001<br />
<br />
The weird thing is, the files in the error messages do exist, and mysql has permissions to them.<br />
<br />
Any ideas how to fix this?<br />
I don't mind resetting my slaves - I'd just like to get replication working again.<br />
<br />
the master's my.cnf is below:<br />
[mysqld]<br />
datadir=/var/lib/mysql<br />
socket=/var/lib/mysql/mysql.sock<br />
user=mysql<br />
innodb_buffer_pool_size=256M<br />
max_allowed_packet=2M<br />
slow_query_log=1<br />
slow_query_log_file=/var/log/mysqld-slow.log<br />
default-storage-engine=InnoDB<br />
skip_secure_auth<br />
sql-mode=&quot;NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot;<br />
<br />
# Configure and enable replication<br />
log_bin=mysql-bin<br />
server_id=36<br />
binlog-format=mixed<br />
report-host=cerberus<br />
<br />
[mysqld_safe]<br />
log-error=/var/log/mysqld.log<br />
pid-file=/var/run/mysqld/mysqld.pid<br />
<br />
thanks,<br />
imran]]></description>
            <dc:creator>Imran Akbar</dc:creator>
            <category>Replication</category>
            <pubDate>Wed, 10 Apr 2013 03:55:33 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582913,582913#msg-582913</guid>
            <title>Too much CPU spend on replication (3 replies)</title>
            <link>http://forums.mysql.com/read.php?26,582913,582913#msg-582913</link>
            <description><![CDATA[ Hi,<br />
<br />
I am using binlog for replication between two servers.<br />
<br />
We have huge amount of data need to be provisoned.And we use row-based binlog format as each row has a date-type colunm.<br />
<br />
So the provisioning generates lots of binlog which lets mysqld overload.<br />
How can I solve this overload issue?<br />
<br />
Thanks<br />
<br />
Alex]]></description>
            <dc:creator>Alax James</dc:creator>
            <category>Replication</category>
            <pubDate>Thu, 04 Apr 2013 05:01:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582843,582843#msg-582843</guid>
            <title>Problem in update command master to master replication (3 replies)</title>
            <link>http://forums.mysql.com/read.php?26,582843,582843#msg-582843</link>
            <description><![CDATA[ Hello, I need help again, I had a problem these days and managed to solve here in the forum, I hope you can help me solve this second problem. Come on, the problem is this: I have two servers running mysql server 5.6 on windows, setup a Master to Master replication on these servers, running, syncing properly, I'm doing some tests, but on a test problem. I have the following environment:<br />
<br />
Code   Name    Phone<br />
1      John    1111111<br />
2      Maria   2222222<br />
3      José    3333333<br />
4      Junior  4444444<br />
<br />
Now imagine that I lose the communication between these two servers, give the user performs an update command on server 1: UPDATE table SET name = 's1 maria', phone = '2 a2a2a2a 'where code = 2;<br />
hence, another user on server 2, run this command: UPDATE table SET name = 'Mary s2', phone = '2 b2b2b2b 'where code = 2;<br />
<br />
I did this test, in my case the servers sync normally again, but give a select * from table where code = 2 on server 1 and it returns me the data set:<br />
<br />
Code    Name        Phone<br />
2       maria s1    2a2a2a2a<br />
<br />
I run the same command on server 2 and it returns me the following data set:<br />
<br />
Code    Name        Phone<br />
2       maria s2    2b2b2b2b<br />
<br />
That is, he did not run the update, someone answer me know how to solve this problem?]]></description>
            <dc:creator>Junior Maia Junior</dc:creator>
            <category>Replication</category>
            <pubDate>Thu, 04 Apr 2013 16:50:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582693,582693#msg-582693</guid>
            <title>How to get single slave table back in sync with master? (3 replies)</title>
            <link>http://forums.mysql.com/read.php?26,582693,582693#msg-582693</link>
            <description><![CDATA[ Hi we have one table that was updated on the slave and now it is out of sync with the master table and some updates failed to replicate from the master. I don't mind skipping those errors but I am worried this will keep happening with this table. Is it possible to resync that one table by truncating it and repopulating it to match production? Or by dropping and recreating the table with all the current production records? Thanks!]]></description>
            <dc:creator>F Kemp</dc:creator>
            <category>Replication</category>
            <pubDate>Wed, 03 Apr 2013 02:49:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582523,582523#msg-582523</guid>
            <title>Master-Master Replication connection loss (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,582523,582523#msg-582523</link>
            <description><![CDATA[ Good day, I am a developer, I am Brazilian, I am in the company I work a problem, we have a mother and a branch in different cities, developed a system to manage the two companies (matrix and branch), installed the database at headquarters and branch access the base via remote access through the Internet, the problem is that the communication was slow on branch, al decided to use replication master to master mysql 5.6 for windows, with a database at headquarters and in the other branch, replication worked normally, the problem is as true a loss of connection between the servers, they do not return to replicate again, and I have no way of knowing what was recorded in a database or another, I can not just back up, as it happens loss of connection the two banks are now different. I wonder how to solve this problem, thank you.]]></description>
            <dc:creator>Junior Maia Junior</dc:creator>
            <category>Replication</category>
            <pubDate>Sat, 30 Mar 2013 04:25:43 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582391,582391#msg-582391</guid>
            <title>Tungsten University: Geographically Distributed Clusters (no replies)</title>
            <link>http://forums.mysql.com/read.php?26,582391,582391#msg-582391</link>
            <description><![CDATA[ Do you need run multi-master MySQL database clusters across sites? In this webinar we will build on the multi-master capabilities of Tungsten, covered in our advanced replication topologies course, to help you build and manage systems that spread data across dozens or even hundreds of sites. We will cover topics such as large scale topologies, transaction filtering, security, and moving replication from simple data movement to application messaging.<br />
<br />
Course Dates:<br />
<br />
- April 11th @ 10 am PDT/1 pm EDT, <a href="https://www1.gotomeeting.com/register/821737497"  rel="nofollow">https://www1.gotomeeting.com/register/821737497</a><br />
- April 16th @ 10 am EDT/15:00 BST/16:00 CEST, <a href="https://www1.gotomeeting.com/register/175986064"  rel="nofollow">https://www1.gotomeeting.com/register/175986064</a><br />
<br />
Course Topics:<br />
<br />
- Review of multi-master replication topologies<br />
- Setting up Tungsten clusters for local site HA<br />
- Linking clusters across sites<br />
- Security for cross-site replication<br />
- Handling local as well as site-wide failures<br />
- Off-the-shelf filters to improvement multi-master replication<br />
- Custom filter development to implement business rules for application messaging]]></description>
            <dc:creator>Petri Virsunen</dc:creator>
            <category>Replication</category>
            <pubDate>Tue, 26 Mar 2013 18:41:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582364,582364#msg-582364</guid>
            <title>Load data infile for slave (3 replies)</title>
            <link>http://forums.mysql.com/read.php?26,582364,582364#msg-582364</link>
            <description><![CDATA[ Hi Folks,<br />
<br />
What if suppose load data infile is issued in master and I see that it gets replicated to slave IO with the infile SQL_LOAD data file listings first then it triggers its SQLs. My question is, when will the tmpdir files that are created as SQL_LOAD_MB-1-0 , SQL_LOAD_MB-2-0 .. SQL_LOAD_MB-12-0 will it get removed on SLAVE? Or is it always check manually if it had triggered the SQLs by matching the master and slave table counts and then remove them? Please advise.<br />
<br />
Regards,<br />
Mannoj]]></description>
            <dc:creator>Mannoj Kumar</dc:creator>
            <category>Replication</category>
            <pubDate>Thu, 04 Apr 2013 17:01:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582299,582299#msg-582299</guid>
            <title>Am I cutting bandwidth by skipping a table? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,582299,582299#msg-582299</link>
            <description><![CDATA[ Lets say I have a database with 2 tables.<br />
<br />
Customers<br />
Orders<br />
<br />
The customers table does not change much.  The orders table changes a lot, 20gigs a day.<br />
<br />
I want to replicate only the customers table, so I exclude the orders table from the replication (on the slave).   Will the slave still download all the BIN logs from the master and apply only the changes to the customers table?<br />
<br />
Or is it smart enough to only get changes to the customers table?]]></description>
            <dc:creator>Robert Gunther</dc:creator>
            <category>Replication</category>
            <pubDate>Tue, 26 Mar 2013 07:29:16 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,582198,582198#msg-582198</guid>
            <title>binlog_do_db not working? (MySQL 5.1.68) (3 replies)</title>
            <link>http://forums.mysql.com/read.php?26,582198,582198#msg-582198</link>
            <description><![CDATA[ I used the options:<br />
<br />
binlog-format=ROW<br />
binlog-do-db=cobrafix<br />
<br />
They seem to be set ok:<br />
<br />
mysql&gt; show master status\G;<br />
*************************** 1. row ***************************<br />
            File: mysql-bin.000002<br />
        Position: 13174<br />
    Binlog_Do_DB: cobrafix<br />
Binlog_Ignore_DB: <br />
1 row in set (0.00 sec)<br />
<br />
mysql&gt; show variables\G;<br />
*************************** 10. row ***************************<br />
Variable_name: binlog_format<br />
        Value: ROW<br />
<br />
But on the binary log, I have:<br />
<br />
[root@cobrafix mysql]# mysqlbinlog mysql-bin.000002 <br />
<br />
/*!*/;<br />
# at 1962<br />
#130323  9:00:01 server id 1  end_log_pos 2077  Query   thread_id=159   exec_time=0     error_code=0<br />
use `cobrafix`/*!*/;<br />
SET TIMESTAMP=1364040001/*!*/;<br />
DROP TABLE IF EXISTS cobrafix_crystal.temp_c_328<br />
/*!*/;<br />
# at 2077<br />
#130323  9:00:01 server id 1  end_log_pos 6098  Query   thread_id=159   exec_time=0     error_code=0<br />
SET TIMESTAMP=1364040001/*!*/;<br />
CREATE TABLE cobrafix_crystal.temp_c_328 (<br />
<br />
Why is MySQL logging database cobrafix_crystal, since it is not on the binlog_do_db?]]></description>
            <dc:creator>Italo Tasso</dc:creator>
            <category>Replication</category>
            <pubDate>Sat, 23 Mar 2013 18:59:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,581894,581894#msg-581894</guid>
            <title>replication with redhat clustering (4 replies)</title>
            <link>http://forums.mysql.com/read.php?26,581894,581894#msg-581894</link>
            <description><![CDATA[ Hi,<br />
<br />
Please help me if replication is possible with redhat clustering.<br />
<br />
Right now we have just implemented redhat clustering (bcoz we want to keep engine as innodb to take advantage of foreign keys) but as a backup I want to set replication.<br />
<br />
If anyone have any idea then please share its process/document.<br />
<br />
Thanks,<br />
Zafar]]></description>
            <dc:creator>zafar malik</dc:creator>
            <category>Replication</category>
            <pubDate>Wed, 03 Apr 2013 11:48:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,581872,581872#msg-581872</guid>
            <title>InnoDB: Over 1000 columns (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,581872,581872#msg-581872</link>
            <description><![CDATA[ We receive &quot;errno: 139&quot; when we try to create an InnoDB table with over 1000 columns. Is there any setting we can change to get this to work? <br />
<br />
Right now I think our only two options are:<br />
<br />
1) Use MyISAM storage engine<br />
2) Change table to have &lt; 1000 columns<br />
<br />
Is there a third option that will let this number of columns work with InnoDB?<br />
<br />
Thanks!]]></description>
            <dc:creator>F Kemp</dc:creator>
            <category>Replication</category>
            <pubDate>Thu, 21 Mar 2013 15:20:01 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,581079,581079#msg-581079</guid>
            <title>Promoting slave as master (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,581079,581079#msg-581079</link>
            <description><![CDATA[ Hi All,<br />
<br />
I am bit new to mysql replication and need help regarding switching mysql master slave nodes.<br />
<br />
Scenario:<br />
<br />
We have a master slave setup as below:<br />
<br />
servera --&gt; Master<br />
serverb --&gt; Slave<br />
<br />
We had some maintenance on servera and for which we want to make serverb as master and servera as slave.<br />
<br />
<br />
This is what we have performed up to now:<br />
<br />
1) Confirmed that slave is in sync with master.<br />
2) Stopped mysql on servera (master)<br />
3) On serverb(slave) recorded the log position:<br />
   Master_Log_File: mysql-bin.000043<br />
   Read_Master_Log_Pos: 290832543<br />
<br />
<br />
4) On serverb (Slave) performed the following:<br />
<br />
   RESET SLAVE;<br />
   RESET MASTER;<br />
   Restarted mysql;<br />
<br />
With this, we the serverb is now acting as master. However, I am not sure on how to add back servera as slave now.<br />
<br />
Do the following steps look good:<br />
<br />
On servera, run the follwoing command:<br />
<br />
CHANGE MASTER TO MASTER_USER='replicator', MASTER_PASSWORD='password', MASTER_HOST='serverb', MASTER_LOG_FILE='mysql-bin.000043', MASTER_LOG_POS=290832543;<br />
<br />
<br />
Will this ensure that the replication will start from where it left?<br />
<br />
On the new master (serverb), when I run show master status, i see the following:<br />
<br />
  File: mysql-bin.000003<br />
        Position: 35738417<br />
<br />
I am wondering how the old bin-log file and the position can be used here.<br />
<br />
<br />
It will be really great if someone can advise here..<br />
<br />
thanks in advance!!!<br />
<br />
Thanks,<br />
Vin]]></description>
            <dc:creator>Vinayak Lokhande</dc:creator>
            <category>Replication</category>
            <pubDate>Wed, 13 Mar 2013 03:03:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,581042,581042#msg-581042</guid>
            <title>Slave I/O thread killed while reading event (no replies)</title>
            <link>http://forums.mysql.com/read.php?26,581042,581042#msg-581042</link>
            <description><![CDATA[ Hi,<br />
  I have 3 slaves connected to my master database.  The slaves had been running ok, but then replication stopped a few days ago, so I restarted the replication.  Today they've stopped again, with this appearing in my MySQL logs on the slaves:<br />
<br />
130309  2:01:01 [Note] Slave I/O thread killed while reading event<br />
130309  2:01:01 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000758', position 166668826<br />
130309  2:01:01 [Note] Error reading relay log event: slave SQL thread was killed<br />
<br />
That's all I see related to the error - I don't see any errors related to a specific query.  There are no errors in the master's log.  Any ideas how I can diagnose the problem?<br />
<br />
thanks,<br />
imran]]></description>
            <dc:creator>Imran Akbar</dc:creator>
            <category>Replication</category>
            <pubDate>Mon, 11 Mar 2013 18:33:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,581001,581001#msg-581001</guid>
            <title>Why variable log-bin is OFF (no replies)</title>
            <link>http://forums.mysql.com/read.php?26,581001,581001#msg-581001</link>
            <description><![CDATA[ Hello,<br />
<br />
I am using two NDB clusters, and setup a geo-redundancy between these two clusters. <br />
<br />
In the mgmt host, I startup ndb_mgmd and mysqld (with option '--log-bin')<br />
Int the ndb hosts, I startup ndbd and mysqld (without option '--log-bin')<br />
<br />
However, I founf that the variable 'log_bin' is OFF. And the replication between two cluster still work.<br />
<br />
I wonder why the variable 'log_bin' is OFF, it should be ON.<br />
<br />
<br />
mysql&gt; show global variables like '%bin%';<br />
+-----------------------------------------+----------------------+<br />
| Variable_name                           | Value                |<br />
+-----------------------------------------+----------------------+<br />
| binlog_cache_size                       | 32768                |<br />
| binlog_direct_non_transactional_updates | OFF                  |<br />
| binlog_format                           | MIXED                |<br />
| log_bin                                 | OFF                  |<br />
| log_bin_trust_function_creators         | OFF                  |<br />
| log_bin_trust_routine_creators          | OFF                  |<br />
| log_bin_use_v1_row_events               | ON                   |<br />
| ndb_log_bin                             | ON                   |<br />
| ndb_log_binlog_index                    | ON                   |<br />
| ndb_report_thresh_binlog_epoch_slip     | 3                    |<br />
| ndb_report_thresh_binlog_mem_usage      | 10                   |<br />
| ndbinfo_database                        | ndbinfo              |<br />
| sql_log_bin                             | ON                   |<br />
| sync_binlog                             | 0                    |<br />
+-----------------------------------------+----------------------+<br />
<br />
Thanks<br />
<br />
Alex]]></description>
            <dc:creator>Alax James</dc:creator>
            <category>Replication</category>
            <pubDate>Mon, 11 Mar 2013 02:37:10 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?26,580925,580925#msg-580925</guid>
            <title>My slave just sits there... (1 reply)</title>
            <link>http://forums.mysql.com/read.php?26,580925,580925#msg-580925</link>
            <description><![CDATA[ I've got a setup with three servers<br />
<br />
<br />
Server A &lt;-&gt; Server B<br />
<br />
A &amp; B are both masters, transactions are replicated in realtime and it works well.<br />
<br />
Server B -&gt; Server C<br />
<br />
Server C is a slave off Server B (server B has log_slave_updates enabled, so Server C gets all).<br />
<br />
<br />
So that is the setup in a nutshell.  If I do show slave status on Server B I can see that the read_master_log_pos changes continuously, every 1 or 2 seconds that value changes which leads me to belive replication is happening - it is reading data in realtime.<br />
<br />
If I do show slave status on Server C, the value of Read_Master_Log_Pos does not change often.  It might change maybe every 20 minutes or more (I do not know exactly how often).<br />
<br />
The Slave_IO_Running &amp; Slave_SQL_Running are Yes on all servers.<br />
<br />
Beyond that I have checked the servername.err file in the MySQL data folder.   The log shows information about Slave SQL thread initialized, starting and general status information. like server starting, shutdown etc.  There is nothing in the logs to indicate any type of error or lag condition.<br />
<br />
If I check the process list on Server C, it will show a state of 'Waiting for master to send event' and 'Slave has read all relay log; waiting for the slave I/O thread to update it'<br />
<br />
Any clues how to find out what is wrong with Server C?  It seems to think there is nothing new to replicate.  In reality I have seen it lag by hours or days behind the masters.  He is like a lazy employee, only working when he wants to!<br />
<br />
<br />
Robert G.]]></description>
            <dc:creator>Robert Gunther</dc:creator>
            <category>Replication</category>
            <pubDate>Sun, 10 Mar 2013 22:36:30 +0000</pubDate>
        </item>
    </channel>
</rss>
