473,399 Members | 3,038 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,399 software developers and data experts.

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.log
tmpdir=/var/tmp/mysql
set-variable = key_buffer_size=128M
set-variable = max_allowed_packet=1M
set-variable = max_connections=500
### irb set-variable = long_query_time = 3
set-variable = thread_cache_size=70
set-variable = sort_buffer=12M
log-bin=/var/log/mysql/binary/mysql_binary_log
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=replication
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_log.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
-------------------------------------------------

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_log.001
Read_Master_Log_Pos: 79080
Relay_Log_File: db1-relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysql_binary_log.001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_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_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
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 5435
>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_log.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 "replication 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_log.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 "replication 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_log.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 "replication 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
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...
2
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...
5
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...
4
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...
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. ...
9
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...
6
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...
2
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...
3
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...
2
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...
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: 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
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
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,...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.