473,721 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

replication issue

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 guide. I followed
the instructions explicitly, but alas it does not work. I've been
through every mailing list, forum post and google query imaginable, but
I haven't found an answer. Now i'm asking any of you all knowing and
powerful mysql guru's to help!

Here's the setup:

MySQL Server 1 (master) my.cnf:
-------------------------------------------------
[mysqld]
datadir=/var/lib/mysql
log-slow-queries=/var/log/mysql/slow_queries.lo g
tmpdir=/var/tmp/mysql
set-variable = key_buffer_size =128M
set-variable = max_allowed_pac ket=1M
set-variable = max_connections =500
### irb set-variable = long_query_time = 3
set-variable = thread_cache_si ze=70
set-variable = sort_buffer=12M
log-bin=/var/log/mysql/binary/mysql_binary_lo g
binlog-do-db=articles
server-id=1

[safe_mysqld]
err-log=/var/log/mysql/mysqld.log
-------------------------------------------------

MySQL Server 2 (db1): MySQL 4.1.11
-------------------------------------------------

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1
server-id=2
master-host=<IP Address>
master-user=replicatio n
master-password=<super secret password>
replicate-do-db=articles

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
-------------------------------------------------

I've checked skip-networking, its set to false on both servers. Both
servers are not behind a firewall either.

Here's the error I get on the slave when I restart the mysqld service:
-------------------------------------------------
050923 09:07:31 mysqld started
050923 09:07:31 InnoDB: Started; log sequence number 0 43634
/usr/libexec/mysqld: ready for connections. Version: '4.1.11' socket:
'/var/lib/mysql/mysql.sock' port: 3306 Source distribution
050923 09:07:31 [Note] Slave SQL thread initialized, starting
replication in log 'mysql_binary_l og.001' at position 79080, relay log
'./db1-relay-bin.000001' position: 4
050923 09:07:31 [ERROR] Slave I/O thread: error connecting to master
'replication@<I P Address>:3306': Error: 'Can't connect to MySQL server
on '<IP Address>' (13)' errno: 2003 retry-time: 60 retries: 86400
-------------------------------------------------

Here's what SHOW SLAVE STATUS\G; shows me:
-------------------------------------------------
mysql> show slave status\G;
*************** ************ 1. row *************** ************
Slave_IO_State: Connecting to master
Master_Host: <IP Address>
Master_User: replication
Master_Port: 3306
Connect_Retry: 60
Master_Log_File : mysql_binary_lo g.001
Read_Master_Log _Pos: 79080
Relay_Log_File: db1-relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Lo g_File: mysql_binary_lo g.001
Slave_IO_Runnin g: Yes
Slave_SQL_Runni ng: Yes
Replicate_Do_DB :
Replicate_Ignor e_DB:
Replicate_Do_Ta ble:
Replicate_Ignor e_Table:
Replicate_Wild_ Do_Table:
Replicate_Wild_ Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log _Pos: 79080
Relay_Log_Space : 4
Until_Condition : None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allo wed: No
Master_SSL_CA_F ile:
Master_SSL_CA_P ath:
Master_SSL_Cert :
Master_SSL_Ciph er:
Master_SSL_Key:
Seconds_Behind_ Master: NULL
1 row in set (0.00 sec)

ERROR:
No query specified
-------------------------------------------------

I'm stumped. Any help would be greatly appreciated and you'll be
instantly added to my christmas card list if you provide me with a
solution! mmmm, honey baked ham!

Thank you in advance for any help and i apologize for this insanely long
newsgroup post.
Sep 23 '05 #1
3 5454
>Here's the error I get on the slave when I restart the mysqld service:
-------------------------------------------------
050923 09:07:31 mysqld started
050923 09:07:31 InnoDB: Started; log sequence number 0 43634
/usr/libexec/mysqld: ready for connections. Version: '4.1.11' socket:
'/var/lib/mysql/mysql.sock' port: 3306 Source distribution
050923 09:07:31 [Note] Slave SQL thread initialized, starting
replication in log 'mysql_binary_l og.001' at position 79080, relay log
'./db1-relay-bin.000001' position: 4
050923 09:07:31 [ERROR] Slave I/O thread: error connecting to master
'replication@< IP Address>:3306': Error: 'Can't connect to MySQL server
on '<IP Address>' (13)' errno: 2003 retry-time: 60 retries: 86400


If that (13) is an OS error code, it's "Permission denied".
Is your database directory owned by user mysql (or whatever user
runs the daemon) on the slave? Can that user create the relay-bin
files? Also check to ensure that the slave can actually log in to
the master using the login information you gave it. Does the
user on the master used by the slave have "replicatio n slave" privilege?
(Show grants for replication@<IP Address of slave> on the master).

Gordon L. Burditt
Sep 23 '05 #2
Gordon Burditt wrote:
Here's the error I get on the slave when I restart the mysqld service:
-------------------------------------------------
050923 09:07:31 mysqld started
050923 09:07:31 InnoDB: Started; log sequence number 0 43634
/usr/libexec/mysqld: ready for connections. Version: '4.1.11' socket:
'/var/lib/mysql/mysql.sock' port: 3306 Source distribution
050923 09:07:31 [Note] Slave SQL thread initialized, starting
replication in log 'mysql_binary_l og.001' at position 79080, relay log
'./db1-relay-bin.000001' position: 4
050923 09:07:31 [ERROR] Slave I/O thread: error connecting to master
'replication@ <IP Address>:3306': Error: 'Can't connect to MySQL server
on '<IP Address>' (13)' errno: 2003 retry-time: 60 retries: 86400

If that (13) is an OS error code, it's "Permission denied".
Is your database directory owned by user mysql (or whatever user
runs the daemon) on the slave?


yes, on both servers
Can that user create the relay-bin files?
yes
Also check to ensure that the slave can actually log in to
the master using the login information you gave it.
it can, tested that many times.
Does the user on the master used by the slave have "replicatio n slave" privilege?
(Show grants for replication@<IP Address of slave> on the master).


used this query on the master server to create the account:

GRANT REPLICATION SLAVE ON *.* TO 'replication'@' %' IDENTIFIED BY
'<super secret password>';

The method I used to setup the replication is detailed on the webpage I
posted in my previous message. If you want to see exactly what I did,
just view this page --> http://forums.gentoo.org/viewtopic.php?t=241123
Sep 23 '05 #3
muldoon wrote:
Gordon Burditt wrote:
Here's the error I get on the slave when I restart the mysqld service:
-------------------------------------------------
050923 09:07:31 mysqld started
050923 09:07:31 InnoDB: Started; log sequence number 0 43634
/usr/libexec/mysqld: ready for connections. Version: '4.1.11'
socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
050923 09:07:31 [Note] Slave SQL thread initialized, starting
replication in log 'mysql_binary_l og.001' at position 79080, relay
log './db1-relay-bin.000001' position: 4
050923 09:07:31 [ERROR] Slave I/O thread: error connecting to master
'replication@<I P Address>:3306': Error: 'Can't connect to MySQL
server on '<IP Address>' (13)' errno: 2003 retry-time: 60 retries:
86400


If that (13) is an OS error code, it's "Permission denied".
Is your database directory owned by user mysql (or whatever user
runs the daemon) on the slave?

yes, on both servers
Can that user create the relay-bin files?

yes
Also check to ensure that the slave can actually log in to
the master using the login information you gave it.

it can, tested that many times.
Does the user on the master used by the slave have "replicatio n slave"
privilege?
(Show grants for replication@<IP Address of slave> on the master).

used this query on the master server to create the account:

GRANT REPLICATION SLAVE ON *.* TO 'replication'@' %' IDENTIFIED BY
'<super secret password>';

The method I used to setup the replication is detailed on the webpage I
posted in my previous message. If you want to see exactly what I did,
just view this page --> http://forums.gentoo.org/viewtopic.php?t=241123


So no one has any idea from this point?
Sep 23 '05 #4

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

Similar topics

0
1692
by: Mahesh Hardikar | last post by:
Hello , Oracle 9.0.1.0.0 on HP-UX 11.11 I am testing Procedural Replication in Multimaster Replication Environment. (Asynchronous) Package PACK_1 with a PROC_1 does insert in TAB_1. The procedure does a simple insert in tab_1. I mark PACK_1,PROC_1 for replication (Multimaster replication)
2
1595
by: Ian Wyld | last post by:
Hello All We intend to replicate a database in order to have it as a near immediate standby in case of the failure of the main server. Is this the best solution for disaster recovery? We are currently testing our replication plan. When we set up the subscriber, a snapshot of the publisher is created and this takes hours. Is there a better way?
5
2075
by: johnm | last post by:
Here is my situation. We run a very mission critical application that uses DB2 7.2 for the data repository. The database is hosed at a data center in Los Angeles, Ca. Our main office is in Portland, Oregon.
4
545
by: Andi Plotsky | last post by:
I need to synchronize 3 databases (1 Master and 2 replicas). I thought I'd give the Replica feature in Access2000 a whirl. I'm not sure I'm THAT impressed.....but maybe I'm just doing something wrong. I'll outline the issues below and then maybe someone who has experience with replicating this way can tell me if this is the route I should take, or if I should just use my own routine which compares strings for each field. 1) I've...
3
2416
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...
9
3930
by: David W. Fenton | last post by:
See: Updated version of the Microsoft Jet 4.0 Service Pack 8 replication files is available in the Download Center http://support.microsoft.com/?scid=kb;en-us;321076 This includes the Jet 4 synchronizer. This allows anyone to do indirect replication, even without
6
1880
by: Alex | last post by:
Hello, We are currently running our Access 2003 database over Citrix. We have been using a single front-end, but reading over topics in this group has made it clear that I should create separate front-ends for each user...so I will do so...thanks to this group for the great research. My question: on occasions, staff have to access the database and they will not have a network connection. I am considering setting up replication...
2
2179
by: Query Builder | last post by:
I have a wired situation..! I set up transactional replication on one of my development server (SQL 2000 Dev Edition with sp4). It is running fine without any issues and all of a sudden, i noticed in my repication monitor tab under Publisher where I usually see the publication is empty now. I do see the snapshot agent, log reader and distribution agent under my
3
2001
by: Veeru71 | last post by:
We have got 2 DB2-UDB databases (DB1 & DB2) running on separate instances( Inst1 & Inst2). DB1 has got Schema1 and DB2 has got Schema2. We would like to setup some kind of replication to replicate both Schema1 & Schema2 onto a 3 rd database (DB3) running on a 3 rd instance (Inst3). This is basically to separate out Data Reads (Reports module of the app) from the primary databases for performace reasons. Also, Some of the Reports join...
2
4248
by: Query Builder | last post by:
Hi, I have transactional replication set up on on of our MS SQL 2000 (SP4) Std Edition database server Because of an unfortunate scenario, I had to restore one of the publication databases. I scripted the replication module and dropped the publication first. Then did a full restore. When I try to set up the replication thru the script, it created the
0
8860
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
8738
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
9376
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
9234
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
9150
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
4501
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
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2599
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2146
bsmnconsultancy
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.