473,660 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Replication Master Not Logging Changes?


It appears as if my master is not logging changes to any databases. When I
use mysqlbinlog against the current (and previous) logs, I get the
following:

dollars@nat451:/var/log/mysql$ mysqlbinlog mysql-bin.003
# at 4
#031201 18:57:25 server id 154 Start: binlog v 4, server v created
691231 19:00:00
dollars@nat451:/var/log/mysql$ mysqlbinlog mysql-bin.004
# at 4
#031201 19:28:54 server id 154 Rotate to mysql-bin.005

In those time periods, I added a table named "Lukas" to the "dollars"
database. I also added three rows. Nothing was output to the logs.

Here is the my.cnf lines regarding replication.

server-id = 154
log-bin = /var/log/mysql/mysql-bin.log
binlog-do-db = dollars,epoch
When running "show master status" I get the following:

File Position Binlog_do_db Binlog_ignore_d b
mysql-bin.005 4 dollars,epoch

The slave connects correctly, and waits patiently for updates. The master
logs the slave connecting, but gives it nothing.

Any ideas?

Lukas

Jul 19 '05 #1
4 3024
The preceding setup is on MySQL 4.0.16 on Debian LINUX.
"Lukas Bradley" <lu***@REMOVE-IT-somnia.com> wrote in message
news:Xv******** ************@sp eakeasy.net...

It appears as if my master is not logging changes to any databases. When I use mysqlbinlog against the current (and previous) logs, I get the
following:

dollars@nat451:/var/log/mysql$ mysqlbinlog mysql-bin.003
# at 4
#031201 18:57:25 server id 154 Start: binlog v 4, server v created 691231 19:00:00
dollars@nat451:/var/log/mysql$ mysqlbinlog mysql-bin.004
# at 4
#031201 19:28:54 server id 154 Rotate to mysql-bin.005

In those time periods, I added a table named "Lukas" to the "dollars"
database. I also added three rows. Nothing was output to the logs.

Here is the my.cnf lines regarding replication.

server-id = 154
log-bin = /var/log/mysql/mysql-bin.log
binlog-do-db = dollars,epoch
When running "show master status" I get the following:

File Position Binlog_do_db Binlog_ignore_d b
mysql-bin.005 4 dollars,epoch

The slave connects correctly, and waits patiently for updates. The master
logs the slave connecting, but gives it nothing.

Any ideas?

Lukas

Jul 19 '05 #2
The preceding setup is on MySQL 4.0.16 on Debian LINUX.
"Lukas Bradley" <lu***@REMOVE-IT-somnia.com> wrote in message
news:Xv******** ************@sp eakeasy.net...

It appears as if my master is not logging changes to any databases. When I use mysqlbinlog against the current (and previous) logs, I get the
following:

dollars@nat451:/var/log/mysql$ mysqlbinlog mysql-bin.003
# at 4
#031201 18:57:25 server id 154 Start: binlog v 4, server v created 691231 19:00:00
dollars@nat451:/var/log/mysql$ mysqlbinlog mysql-bin.004
# at 4
#031201 19:28:54 server id 154 Rotate to mysql-bin.005

In those time periods, I added a table named "Lukas" to the "dollars"
database. I also added three rows. Nothing was output to the logs.

Here is the my.cnf lines regarding replication.

server-id = 154
log-bin = /var/log/mysql/mysql-bin.log
binlog-do-db = dollars,epoch
When running "show master status" I get the following:

File Position Binlog_do_db Binlog_ignore_d b
mysql-bin.005 4 dollars,epoch

The slave connects correctly, and waits patiently for updates. The master
logs the slave connecting, but gives it nothing.

Any ideas?

Lukas

Jul 19 '05 #3
I'm still trying to make this work, so I'm just going to keep posting what I
find.

I'm certainly using the correct database, and my transactions are being
commited. I've tried MyISAM and InnoDB tables, and neither are shown.

Here is a sample query:

use dollars ;
create table Bobby
(
id int unsigned primary key auto_increment,
ssn int
) type=InnoDB ;
insert into Bobby (ssn) values (12312),(123125 44),(1231231);
commit ;
Now, the binlogs before the query are as follows:

lukas@localhost :/var/log/mysql$ dir
total 28
drwxrwxrwx 2 dollars mysql 4096 Dec 1 21:53 ./
drwxr-xr-x 9 root root 4096 Dec 1 06:52 ../
-rw-rw---- 1 dollars users 1271 Dec 1 21:36 mysql-bin.001
-rw-rw---- 1 dollars users 655 Dec 1 21:59 mysql-bin.002
-rw-rw---- 1 dollars users 58 Dec 1 21:49 mysql-bin.index
-rw-rw---- 1 dollars users 348 Dec 1 21:49 mysql-slow.log

After the preceding code block, the binlogs have increased.

lukas@localhost :/var/log/mysql$ dir
total 24
drwxrwxrwx 2 dollars mysql 4096 Dec 1 21:59 ./
drwxr-xr-x 9 root root 4096 Dec 1 06:52 ../
-rw-rw---- 1 dollars users 1271 Dec 1 21:36 mysql-bin.001
-rw-rw---- 1 dollars users 904 Dec 1 22:02 mysql-bin.002
-rw-rw---- 1 dollars users 58 Dec 1 21:49 mysql-bin.index
-rw-rw---- 1 dollars users 348 Dec 1 21:49 mysql-slow.log

As you can see, the bin.002 log increased from 655 bytes to 904 bytes.
However, running mysqlbinlog on the 002 file STILL produces nothing:

lukas@localhost :/var/log/mysql$ mysqlbinlog mysql-bin.002
# at 4
#031201 21:49:39 server id 154 Start: binlog v 4, server v created
691231 19:00:00

There are two things I notice about this output. First, the last part
"created 691231 19:00:00" is 7pm on New Years Eve 1969. Is this
coincidentally near the epoch, or was this a missed compiled time? I don't
think this should be the time of the binlog creation....

The second thing I notice..... well.... the second thing I notice is the
damn thing isn't working. So someone help me.... please?

Lukas

Jul 19 '05 #4
I'm still trying to make this work, so I'm just going to keep posting what I
find.

I'm certainly using the correct database, and my transactions are being
commited. I've tried MyISAM and InnoDB tables, and neither are shown.

Here is a sample query:

use dollars ;
create table Bobby
(
id int unsigned primary key auto_increment,
ssn int
) type=InnoDB ;
insert into Bobby (ssn) values (12312),(123125 44),(1231231);
commit ;
Now, the binlogs before the query are as follows:

lukas@localhost :/var/log/mysql$ dir
total 28
drwxrwxrwx 2 dollars mysql 4096 Dec 1 21:53 ./
drwxr-xr-x 9 root root 4096 Dec 1 06:52 ../
-rw-rw---- 1 dollars users 1271 Dec 1 21:36 mysql-bin.001
-rw-rw---- 1 dollars users 655 Dec 1 21:59 mysql-bin.002
-rw-rw---- 1 dollars users 58 Dec 1 21:49 mysql-bin.index
-rw-rw---- 1 dollars users 348 Dec 1 21:49 mysql-slow.log

After the preceding code block, the binlogs have increased.

lukas@localhost :/var/log/mysql$ dir
total 24
drwxrwxrwx 2 dollars mysql 4096 Dec 1 21:59 ./
drwxr-xr-x 9 root root 4096 Dec 1 06:52 ../
-rw-rw---- 1 dollars users 1271 Dec 1 21:36 mysql-bin.001
-rw-rw---- 1 dollars users 904 Dec 1 22:02 mysql-bin.002
-rw-rw---- 1 dollars users 58 Dec 1 21:49 mysql-bin.index
-rw-rw---- 1 dollars users 348 Dec 1 21:49 mysql-slow.log

As you can see, the bin.002 log increased from 655 bytes to 904 bytes.
However, running mysqlbinlog on the 002 file STILL produces nothing:

lukas@localhost :/var/log/mysql$ mysqlbinlog mysql-bin.002
# at 4
#031201 21:49:39 server id 154 Start: binlog v 4, server v created
691231 19:00:00

There are two things I notice about this output. First, the last part
"created 691231 19:00:00" is 7pm on New Years Eve 1969. Is this
coincidentally near the epoch, or was this a missed compiled time? I don't
think this should be the time of the binlog creation....

The second thing I notice..... well.... the second thing I notice is the
damn thing isn't working. So someone help me.... please?

Lukas

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1199
by: John Yasaitis | last post by:
I seem to have replication set up correctly to only replicate one database named vmail.* Except when I try to update a table in vmail.* the changes do not replicate to the slave. Authentication works fine. Binary logging (log-bin) is enabled on both. I have a feeling about one thing that might be wrong - "Binlog_do_db" on the master server is empty when it should be "vmail".
3
18971
by: Sander Smeenk | last post by:
Hello! I'm trying to set up replication between two servers and even though I did everything according to the documentation, the slave keeps failing to connect to the master like this: | 050119 0:23:43 Slave SQL thread initialized, starting replication in | log 'zwart-bin.001' at position 79, relay log './blauw-relay-bin.001' | position: 4 | 050119 0:23:43 Slave I/O thread: error connecting to master
0
1112
by: Frank Natoli | last post by:
Am attempting to setup master/slave replication in Windows environment. Both master and slave are running WinXP. Master appears to be logging correctly, but cannot get slave to update its databases and tables from the master. MySQL 4.1.10a-nt is running on the master. MySQL 4.1.7-nt is running on the slave. Only workgroups are used on LAN, no domain. my.ini on master, section , has following inserted statements:
6
2343
by: RdR | last post by:
Hi, Has anyone encountered infinite looping in Q Replication? This happens when I have a source DB2 table A going to a target DB2 table B, it also happens that the samne target table B is replicated back to source table A (true bi-directional replication scenario). Once I start replication on a master to master scenario the changes in A gets replicated to B but that change gets replicated back to A and so on creating an infinite loop. Is...
8
2845
by: Bri | last post by:
Greetings, After making various edits and deletes on aproximately 40,000 records in one table (on the Design Master) syncronization fails with Error 3052 - File Sharing Lock Count Exceeded. After reading the MS KB article 173006 (http://support.microsoft.com/default.aspx?scid=kb;en-us;173006) I increased the locks to 100,000 on the Replica PC and I still get the error. Since the defailt value is only 9500 I would have thought that...
2
3878
by: HJ | last post by:
Hi all, I am looking at a problem we encountered with replication. Our front-end and back-end are Microsoft Access 2000. We have a design master at the server and replicas at five notebooks. The notebooks are synchronized daily by the users via a form that uses Microsoft Jet and Replication Objects (JRO) and this works well. I have a few questions about this: 1. A problem occurs when two users change the same field in the same record
3
2411
by: dlesandrini | last post by:
I need advice about my decision to go with Replication in general. This post was placed on the Microsoft Replication newsgroup, but I really value the feedback that comes from this group as well. I have a new client who want their Excel data moved to Access. They have only 4-6 users of this data and a couple of them want to work disconnected, with their laptops and synchronize when they come into the office. The database will be...
3
6084
by: Juan Antonio Villa | last post by:
Hello, I'm having a problem replicating a simple database using the binary log replication, here is the problem: When the master sends an update to the slave, an example update reads as follows: UPDATE MainInfo SET dAddress='38 Holland Blvd', dCity='miami', dState='FL', dZip='33000', dCountry='USA', dPhone='999987565', dNum='AC15857', dName='Michael A Scott' WHERE did=22'
8
1479
by: Sharktbbtfy | last post by:
Hi, hoping someone can help. The situation is that an app I designed is installed on a desktop PC and six laptops,separately, which synchronise to the desktop once a day at random times. I have two questions: 1) Is it advisable to not have the design master as the mothership but have a replica on the desktop where the backend is named, e.g., replica of
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.