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

Home Posts Topics Members FAQ

Replication Problem (XP+mysql4.0.14 )

------=_NextPart_000_ 03FF_01C368A4.7 5720DC0
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=3Dpoli sh
default-character-set=3Dlatin2
log-bin
server-id=3D1
log-warnings

set-variable =3D key_buffer=3D16 K
set-variable =3D max_allowed_pac ket=3D1M
set-variable =3D thread_stack=3D 64K
set-variable =3D table_cache=3D4
set-variable =3D sort_buffer=3D6 4K
set-variable =3D net_buffer_leng th=3D2K
query_cache_siz e =3D 1024K
# Uncomment the following if you are using Innobase tables
innodb_data_fil e_path =3D ibdata1:50M
innodb_data_hom e_dir =3D d:\\innodb\\mys ql4\\master\\ib data
innodb_log_grou p_home_dir =3D d:\\innodb\\mys ql4\\master\\ib logs
innodb_log_arch _dir =3D d:\\innodb\\mys ql4\\master\\ib logs

set-variable =3D innodb_mirrored _log_groups=3D1
set-variable =3D innodb_log_file s_in_group=3D3
set-variable =3D innodb_log_file _size=3D5M
set-variable =3D innodb_log_buff er_size=3D8M
innodb_flush_lo g_at_trx_commit =3D1
innodb_log_arch ive=3D0
set-variable =3D innodb_buffer_p ool_size=3D16M
set-variable =3D innodb_addition al_mem_pool_siz e=3D2M
set-variable =3D innodb_file_io_ threads=3D4
set-variable =3D innodb_lock_wai t_timeout=3D50
[mysqldump]
quick
set-variable =3D max_allowed_pac ket=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=3D8 M

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

[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=3Dpoli sh
default-character-set=3Dlatin2
server-id=3D2
# log-bin
# log-slave-updates
master-host=3D127.0.0. 1
master-user=3Direk
master-password=3DXXXX XXXXXX
master-port=3D3300
master-connect-retry=3D30
# log-update=3Dlog_up dates.log
log-warnings

set-variable =3D key_buffer=3D16 K
set-variable =3D max_allowed_pac ket=3D1M
set-variable =3D thread_stack=3D 64K
set-variable =3D table_cache=3D4
set-variable =3D sort_buffer=3D6 4K
set-variable =3D net_buffer_leng th=3D2K
query_cache_siz e =3D 1024K
# Uncomment the following if you are using Innobase tables

innodb_data_fil e_path =3D ibdata1:50M
innodb_data_hom e_dir =3D d:\\innodb\\mys ql4\\slave\\ibd ata
innodb_log_grou p_home_dir =3D d:\\innodb\\mys ql4\\slave\\ibl ogs
innodb_log_arch _dir =3D d:\\innodb\\mys ql4\\slave\\ibl ogs

set-variable =3D innodb_mirrored _log_groups=3D1
set-variable =3D innodb_log_file s_in_group=3D3
set-variable =3D innodb_log_file _size=3D5M
set-variable =3D innodb_log_buff er_size=3D8M
innodb_flush_lo g_at_trx_commit =3D1
innodb_log_arch ive=3D0
set-variable =3D innodb_buffer_p ool_size=3D16M
set-variable =3D innodb_addition al_mem_pool_siz e=3D2M
set-variable =3D innodb_file_io_ threads=3D4
set-variable =3D innodb_lock_wai t_timeout=3D50
[mysqldump]
quick
set-variable =3D max_allowed_pac ket=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=3D8 M

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

## 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=3 D489
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.7 5720DC0--

Jul 19 '05 #1
0 2164

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

Similar topics

4
3304
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 fine. The MySQL server seems to be running though actually I'm not sure. When I write $link = mysql_connect("localhost", "mysql"); I get the PHP5 error message "Call to undefined function mysql_connect()" Can anyone help? (Or should I be using...
0
2297
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 in Red Hat > > Linux 9. > > > > 1) I want to implement asynchronous/synchronous multimaster > > replication.I have heard about Replication Management Tool in OEM. > > What are the steps to be taken initailly for using Replication
0
3264
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
1310
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 remain active woexec, ntvdm and setup, but the process is freezed. It is possibile to convert the current setup mode of mysql4.014 in other install system, as for in mysqlcc092 ? Otherwise is no possible to install MYSQL under the current...
0
2144
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
583
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 one machine with win XP Professional polish version.
6
3882
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 and the server upon return to the office. I am planning it this; Move all access tables to sql server and then link the tables to access front-end mdb app (using odbc?). Copy the same setup (access front end + sql backend) onto each laptop....
56
5963
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 to a 2nd office 15 minutes down the road. Only one office will be open at a time, so theoretically it'd be possible to copy the back-end manually every night from one office to another, but frankly, that's pretty annoying.
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
3
4548
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 migrate from V7 to V8 but that's fully described so that's no problem). The PDF 'Migrating to Replication Version 9' doesn't contain a description about migrating SQL Replication, only Q replication. I found some links to PDF manuals which should...
0
8858
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
9230
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
9148
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,...
1
6678
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
5994
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();...
2
2596
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.