473,395 Members | 1,386 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,395 software developers and data experts.

Replication Problem (XP+mysql4.0.14)

------=_NextPart_000_03FF_01C368A4.75720DC0
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

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:

####### FOR MASTER #################
# This will be passed to all mysql clients
[client]
#password=3Dmy_password
port=3D3300
#socket=3DMySQL

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# The MySQL server
[mysqld]
basedir =3D c:/mysql4/
datadir =3D c:/mysql4/data/
port=3D3300
language=3Dpolish
default-character-set=3Dlatin2
log-bin
server-id=3D1
log-warnings

set-variable =3D key_buffer=3D16K
set-variable =3D max_allowed_packet=3D1M
set-variable =3D thread_stack=3D64K
set-variable =3D table_cache=3D4
set-variable =3D sort_buffer=3D64K
set-variable =3D net_buffer_length=3D2K
query_cache_size =3D 1024K
# Uncomment the following if you are using Innobase tables
innodb_data_file_path =3D ibdata1:50M
innodb_data_home_dir =3D d:\\innodb\\mysql4\\master\\ibdata
innodb_log_group_home_dir =3D d:\\innodb\\mysql4\\master\\iblogs
innodb_log_arch_dir =3D d:\\innodb\\mysql4\\master\\iblogs

set-variable =3D innodb_mirrored_log_groups=3D1
set-variable =3D innodb_log_files_in_group=3D3
set-variable =3D innodb_log_file_size=3D5M
set-variable =3D innodb_log_buffer_size=3D8M
innodb_flush_log_at_trx_commit=3D1
innodb_log_archive=3D0
set-variable =3D innodb_buffer_pool_size=3D16M
set-variable =3D innodb_additional_mem_pool_size=3D2M
set-variable =3D innodb_file_io_threads=3D4
set-variable =3D innodb_lock_wait_timeout=3D50
[mysqldump]
quick
set-variable =3D max_allowed_packet=3D16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
set-variable =3D key_buffer=3D8M
set-variable =3D sort_buffer=3D8M

[myisamchk]
set-variable =3D key_buffer=3D8M
set-variable =3D sort_buffer=3D8M

[mysqlhotcopy]
interactive-timeout
###########################
### FOR SLAVE #########
# This will be passed to all mysql clients
[client]
#password=3Dmy_password
port=3D3301
#socket=3DMySQL

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# The MySQL server
[mysqld]
basedir =3D c:/mysql4_slave/
datadir =3D c:/mysql4_slave/data/
port=3D3301
language=3Dpolish
default-character-set=3Dlatin2
server-id=3D2
# log-bin
# log-slave-updates
master-host=3D127.0.0.1
master-user=3Direk
master-password=3DXXXXXXXXXX
master-port=3D3300
master-connect-retry=3D30
# log-update=3Dlog_updates.log
log-warnings

set-variable =3D key_buffer=3D16K
set-variable =3D max_allowed_packet=3D1M
set-variable =3D thread_stack=3D64K
set-variable =3D table_cache=3D4
set-variable =3D sort_buffer=3D64K
set-variable =3D net_buffer_length=3D2K
query_cache_size =3D 1024K
# Uncomment the following if you are using Innobase tables

innodb_data_file_path =3D ibdata1:50M
innodb_data_home_dir =3D d:\\innodb\\mysql4\\slave\\ibdata
innodb_log_group_home_dir =3D d:\\innodb\\mysql4\\slave\\iblogs
innodb_log_arch_dir =3D d:\\innodb\\mysql4\\slave\\iblogs

set-variable =3D innodb_mirrored_log_groups=3D1
set-variable =3D innodb_log_files_in_group=3D3
set-variable =3D innodb_log_file_size=3D5M
set-variable =3D innodb_log_buffer_size=3D8M
innodb_flush_log_at_trx_commit=3D1
innodb_log_archive=3D0
set-variable =3D innodb_buffer_pool_size=3D16M
set-variable =3D innodb_additional_mem_pool_size=3D2M
set-variable =3D innodb_file_io_threads=3D4
set-variable =3D innodb_lock_wait_timeout=3D50
[mysqldump]
quick
set-variable =3D max_allowed_packet=3D16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
set-variable =3D key_buffer=3D8M
set-variable =3D sort_buffer=3D8M

[myisamchk]
set-variable =3D key_buffer=3D8M
set-variable =3D sort_buffer=3D8M

## END configuration
So i have noticed this things.

I start replication with master and slave:
1)
Master is running ...

---------------------------------------------------
Slave is running ... and at console can i see:

030804 22:55:36 InnoDB: Started
030804 22:55:36 Slave I/O thread: connected to master
'i***@127.0.0.1:3300', r
eplication started in log 'FIRST' at position 4
030804 22:55:36 Slave SQL thread initialized, starting replication in =
log
'FIRS
T' at position 0, relay log '.\hq-relay-bin.001' position: 4
mysqld-max-nt: ready for connections.
Version: '4.0.14-max-nt' socket: '' port: 3301
---------------------------------------------------

That is ok.

3) checked master data dir:
hq-bin.001
hq-bin.index

4) checked slave data dir:
hq-relay-bin.001
hq-relay-bin.index
master.info
relay-log.info

5) I stopped slave - shutdown nicely.

6) I stopped and started master 3 times.

7) I checked master data dir and i can see:
hq-bin.001
hq-bin.002
hq-bin.003
hq-bin.004
hq-bin.index

8) I started master.

9) master data dir:
hq-bin.001
hq-bin.002
hq-bin.003
hq-bin.004
hq-bin.005
hq-bin.index

10) I started a slave:
030804 23:07:36 InnoDB: Started
030804 23:07:36 Slave I/O thread: connected to master
'i***@127.0.0.1:3300', r
eplication started in log 'hq-bin.001' at position 79
030804 23:07:36 Slave SQL thread initialized, starting replication in =
log
'hq-b
in.001' at position 79, relay log '.\hq-relay-bin.001' position: 116
mysqld-max-nt: ready for connections.
Version: '4.0.14-max-nt' socket: '' port: 3301
11) I stopped slave (master is still runing):

12) I started slave again:
030804 23:09:17 InnoDB: Started
030804 23:09:17 Slave I/O thread: connected to master
'i***@127.0.0.1:3300', r
eplication started in log 'hq-bin.005' at position 79
030804 23:09:17 Slave SQL thread initialized, starting replication in =
log
'hq-b
in.005' at position 79, relay log '.\hq-relay-bin.002' position: 489
030804 23:09:17 next log error: -1 offset: 19 log:

030804 23:09:17 Error reading relay log event: Error purging processed =
log
030804 23:09:17 Could not parse relay log event entry. The possible =
reasons
are
: the master's binary log is corrupted (you can check this by running
'mysqlbinl
og' on the binary log), the slave's relay log is corrupted (you can =
check
this b
y running 'mysqlbinlog' on the relay log), a network problem, or a bug =
in
the ma
ster's or slave's MySQL code. If you want to check the master's binary =
log
or sl
ave's relay log, you will be able to know their names by issuing 'SHOW =
SLAVE
STA
TUS' on this slave.
030804 23:09:17 Error running query, slave SQL thread aborted. Fix the
problem,
and restart the slave SQL thread with "SLAVE START". We stopped at log
'hq-bin.
005' position 79
mysqld-max-nt: ready for connections.
Version: '4.0.14-max-nt' socket: '' port: 3301
13) In slave data dir:

hq-relay-bin.003
hq-relay-bin.index
master.info
relay-log.info
THIS IS BUG ???
Now my slave is runnung, but does'nt do a replication.

14) stop slave and running it again.
030804 23:12:00 InnoDB: Started
030804 23:12:00 Failed to open the relay log
(relay_log_name=3D'.\hq-relay-bin.00
2', relay_log_pos=3D489
030804 23:12:00 Could not find first log during relay log =
initialization
030804 23:12:00 Failed to initialize the master info structure
mysqld-max-nt: ready for connections.
Version: '4.0.14-max-nt' socket: '' port: 3301

Right, in slave data dir isn't that file, it is deleted by mysql server =
wich
is running as slave, WHY ??

IS that BUG, what should i do ?

LOAD DATA FROM MASTER ?? or sync again slave tables with master tables =
??
Best regards, irek

------=_NextPart_000_03FF_01C368A4.75720DC0--

Jul 19 '05 #1
0 2129

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

Similar topics

4
by: Philipp Lenssen | last post by:
OK, I can get PHP5 running on Apache 2 installed on Windows XP Home Edition. Now I want to add MySQL4 to the package. I installed it but I'm not sure what to do now. My PHP5 scripts are running...
0
by: Cherrish Vaidiyan | last post by:
Frank <fbortel@nescape.net> wrote in message news:<bqgb99$a04$1@news1.tilbu1.nb.home.nl>... > Cherrish Vaidiyan wrote: > > Hello, > > > > I have certain doubts regarding replication of Oracle 9i ...
0
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...
0
by: Massimo Petrini | last post by:
I need to upgrade my current mysql installation . But now there is a problem to run the setup.exe of installshield 5.x under windows xp sp1 or sp2. The program hung after few seconds. In the memory...
0
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 +...
0
by: I.P. | last post by:
------=_NextPart_000_03FF_01C368A4.75720DC0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hi, it's my story. I have two 4.0.14 mysql server on...
6
by: John | last post by:
Hi We have an access app (front-end+backend) running on the company network. I am trying to setup replication for laptop users who go into field and need the data synched between their laptops...
56
by: Raphi | last post by:
Hi, I've been using an Access application I wrote for an office with the front-end stored on all computers and the back-end on one of them serving as an Access file server. Now we're moving...
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...
3
by: Gert van der Kooij | last post by:
Hi, Our SQL Replication is between DB2 databases on Windows servers. I'm searching for the document which tells me how to migrate our SQL Replication environment from V8 to V9 (we also need to...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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...

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.