473,695 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Replication database on slave is not updated


We are using mysql v4.0.24 on Linux machines.
I'm trying to set up replication with a master and only one slave
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
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_ignore_d b:
1 row in set (0.00 sec)
This is the slave status:

mysql> show slave status\G
*************** ************ 1. row *************** ************
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
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
db: NULL
Command: Connect
Time: 1265
State: Waiting for master to send event
Info: NULL
*************** ************ 4. row *************** ************
Id: 22
User: system user
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.


Jul 23 '05 #1
0 1943

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

Similar topics

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
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:
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.
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...
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...
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...
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...
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.
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'
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...
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,...
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...
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...
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,...
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...
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();...
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
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.