473,624 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Replication database on slave is not updated

Hello,

We are using mysql v4.0.24 on Linux machines.
I'm trying to set up replication with a master and only one slave
database.
The syncronization seems to work well, the relay file on slave is wrote
correctly (Read_Master_Lo g_Pos and Relay_Log_Pos are updated) but the
information on slave database is not updated.
Master and slave are sincronyzed as shown below but for some reason I
don't understand.
I have to say thay sometimes the replication worked but sometimes
setting up a new slave or changing a slave to master it does not.

This is what I see on the error.log file

050718 11:23:04 Slave I/O thread killed while reading event
050718 11:23:04 Slave I/O thread exiting, read up to log
'mysql-bin.027', position 382
050718 11:23:04 Error reading relay log event: slave SQL thread was
killed
050718 11:23:07 Slave SQL thread initialized, starting replication in
log 'mysql-bin.027' at position 382, relay log
'/var/log/mysql/relay.001' position: 462
050718 11:23:07 Slave I/O thread: connected to master
'r********@192. 168.0.100:3306' , replication started in log
'mysql-bin.027' at position 382
This is the master status:

mysql> show master status\G
*************** ************ 1. row *************** ************
File: mysql-bin.027
Position: 382
Binlog_do_db:
Binlog_ignore_d b:
1 row in set (0.00 sec)
This is the slave status:

mysql> show slave status\G
*************** ************ 1. row *************** ************
Master_Host: 192.168.0.100
Master_User: replicant
Master_Port: 3306
Connect_retry: 60
Master_Log_File : mysql-bin.027
Read_Master_Log _Pos: 382
Relay_Log_File: relay.001
Relay_Log_Pos: 462
Relay_Master_Lo g_File: mysql-bin.027
Slave_IO_Runnin g: Yes
Slave_SQL_Runni ng: Yes
Replicate_do_db : copiare
Replicate_ignor e_db:
Last_errno: 0
Last_error:
Skip_counter: 0
Exec_master_log _pos: 382
Relay_log_space : 462
1 row in set (0.00 sec)

This is the processlist:

mysql> show processlist\G
....
*************** ************ 3. row *************** ************
Id: 21
User: system user
Host:
db: NULL
Command: Connect
Time: 1265
State: Waiting for master to send event
Info: NULL
*************** ************ 4. row *************** ************
Id: 22
User: system user
Host:
db: NULL
Command: Connect
Time: 367
State: Has read all relay log; waiting for the I/O slave thread to
update it
Info: NULL
Thank you in advance.

Michele

Jul 23 '05 #1
0 1940

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

Similar topics

0
1585
by: Nick Gaugler | last post by:
I know the replication method is different in MySQL 4.0 then MySQL 3.23.x, but I have a bug that causes problems. The following query will cause MySQL's logic to not properly read any of the following my.cnf commands on slave servers: replicate-wild-do-table replicate-wild-ignore-table replicate-ignore-table I am sure it would make any of the match commands fail as well. This
0
3257
by: I.P. | last post by:
Hi, it's my story. I have two 4.0.14 mysql server on one machine with win XP Professional polish version. First acts as master: on port 3300 Second acts as slave: on port 3301 below my configuration:
0
2134
by: I.P. | last post by:
No one has replied to my post. ----- Original Message ----- From: "I.P." <jancio_wodnik@wp.pl> To: <mysql@lists.mysql.com> Sent: Monday, August 18, 2003 1:01 PM Subject: mysql 4.0.14 + replication + windows XP PROF Hi, it's my story.
0
1252
by: cjackson | last post by:
I'm having an odd problem while setting up one-way replication between 2 MySQL servers. The setup process seemed to go well, and when I examine everything, like processlists on both servers and the master and slave statuses, it all seems to be working fine. Whenever I make an update to the master database, the binlog gets updated on both the master and the slave. The relay log on the slave also seems to record the change. The only problem...
0
1994
by: Ilja Booij | last post by:
Hi all, I have set up master/slave replication between 2 servers (1 master, 1 slave). However, when I change a table on the master (e.g. by inserting a row), the same table on the slave is not updated. The strange thing is that if I enter SHOW SLAVE STATUS on the client, it gives me the same offset in the binary log on the master as the master gives when issuing SHOW MASTER STATUS (both entered after the update). I'm trying to...
3
5451
by: muldoon | last post by:
I'm having quite a fuss with my two MySQL DB servers lately. I'm trying to establish replication between a MySQL 4.0.20 server (master) and a MySQL 4.1.11 server (slave). From what I read, replication from a 4.0.x server -> 4.1.x server will work, just not the other way around. However, that's not really my problem. After unsuccessfully completing the configuration myself, I used http://forums.gentoo.org/viewtopic.php?t=241123 as a...
9
2438
by: Jan Wieck | last post by:
Dear community, for some reason the post I sent yesterday night still did not show up on the mailing lists. I have set up some links on the developers side under http://developer.postgresql.org/~wieck/slony1.html The concept will be the base for some of my work as a Software Engineer here at Afilias USA INC. in the near future. Afilias is like many of you in need of reliable and performant replication solutions for backup and failover...
3
2015
by: Chad J. Lemmer | last post by:
We purchased 2 new HP DL385 servers that will be used for MySQL 5 in a replication environment. Server 1 (Master) is connected gigabit to our Cisco 3550 core switch The Cisco 3550 core switch is connected gigabit over fiber to a Cisco 3548 switch in another building. Server 2 (Slave) is connected to the Cisco 3548 on a 100MB switched port.
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'
0
8240
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8175
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
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
8625
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...
0
7168
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...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1791
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.