473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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_db
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 3006
The preceding setup is on MySQL 4.0.16 on Debian LINUX.
"Lukas Bradley" <lu***@REMOVE-IT-somnia.com> wrote in message
news:Xv********************@speakeasy.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_db
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********************@speakeasy.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_db
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),(12312544),(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),(12312544),(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
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...
3
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: |...
0
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...
6
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...
8
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....
2
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...
3
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. ...
3
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:...
8
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.