Bug #56139 About Replication of version 5.1.45-log , Sos
Submitted: 20 Aug 2010 9:12 Modified: 20 Aug 2010 9:22
Reporter: KaiLin Wang Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version: 5.1.45-log OS:Linux (CentOS release 5.4 (Final) 64bit)
Assigned to: CPU Architecture:Any
Tags: 5.1.45-log, CentOS, replication

[20 Aug 2010 9:12] KaiLin Wang
Description:
Hi

I have three servers
A = Apache Server , It's running PHP
B = Master DB
C = Slave DB

In C.server show slave status \G;
It's response Slave_IO_Running: Yes and Slave_SQL_Running: Yes

And I login B.server use 
INSERT INTO gameserver.ccu_log(calc_time,ccu) VALUES(UNIX_TIMESTAMP(),10);

It's working!

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
+-------+------------+-----+

and C.server of slave can working ,too.

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
+-------+------------+-----+

And then I in A.server use php to do this
$sql = "INSERT INTO gameserver.ccu_log(calc_time,ccu) VALUES(UNIX_TIMESTAMP(),$ccu);";

mysql_query($sql);

In B.server Master, still can work,so I get

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
| 28124 | 1282295074 |  10 |
+-------+------------+-----+

But in C.server Slave, it's can not work...
only...

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
+-------+------------+-----+

So, I observation mysql-bin.000001....

When I login B.server mysql cmd
use any insert into or update.
The Master and the Slave databases can work.
The mysql-bin.000001 will write this log.

But at A.server use php
The Master databases still can work.
But Slave database can not work...
And mysql-bin.000001 not write this log.

Please help us...

Thanks.

How to repeat:
Hi

I have three servers
A = Apache Server , It's running PHP
B = Master DB
C = Slave DB

In C.server show slave status \G;
It's response Slave_IO_Running: Yes and Slave_SQL_Running: Yes

And I login B.server use 
INSERT INTO gameserver.ccu_log(calc_time,ccu) VALUES(UNIX_TIMESTAMP(),10);

It's working!

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
+-------+------------+-----+

and C.server of slave can working ,too.

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
+-------+------------+-----+

And then I in A.server use php to do this
$sql = "INSERT INTO gameserver.ccu_log(calc_time,ccu) VALUES(UNIX_TIMESTAMP(),$ccu);";

mysql_query($sql);

In B.server Master, still can work,so I get

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
| 28124 | 1282295074 |  10 |
+-------+------------+-----+

But in C.server Slave, it's can not work...
only...

+-------+------------+-----+
| id    | calc_time  | ccu |
+-------+------------+-----+
| 28124 | 1282291240 |  10 |
+-------+------------+-----+

So, I observation mysql-bin.000001....

When I login B.server mysql cmd
use any insert into or update.
The Master and the Slave databases can work.
The mysql-bin.000001 will write this log.

But at A.server use php
The Master databases still can work.
But Slave database can not work...
And mysql-bin.000001 not write this log.

Please help us...

Thanks.
[20 Aug 2010 9:22] MySQL Verification Team
We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug.

Support on using our products is available both free in our forums at http://forums.mysql.com/ and for a reasonable fee direct from our skilled support engineers at http://www.mysql.com/support/

Thank you for your interest in MySQL.