Jump to content

Replication in MySQL???


wtech

Recommended Posts

Hi

Am using

Windows-2000
Apache-2.0.52
Mysql-4.0.20
PHP-4.3.8

Versions in two servers. I would like to synchronize the my local database to the remote database server.

for that We need to add some lines to the my.cnf file. /mysql/etc/my.cnf(path).

[b]Master[/b]

1) I created one user for replication with file permissions. like
GRANT FILE ON *.* TO repl@"%" IDENTIFIED BY '<password>';

2) Added these lines to my.cnf file of server

log-bin
server-id=1

[b]Slave[/b]

1)

master-host=myhost
master-user=myuser
master-password=****
master-port=3306
server-id=2

After restarting the both mysql servers actually replication should start.

But replication is not wokring. I have checked the log files on both the systems.

No errorl messages r thr. I could not understand wts the problem here.

Can anybody please suggest me...


thanks

Regards

ShashiKumar Bandari





Link to comment
Share on other sites

Not sure why you chose the FILE permission -- you need the REPLICATION permission. I suggest you re-read [a href=\"http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html\" target=\"_blank\"]this tutorial[/a] on getting replication up and running.

Hope that helps.
Link to comment
Share on other sites

[!--quoteo(post=339508:date=Jan 24 2006, 02:15 PM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ Jan 24 2006, 02:15 PM) [snapback]339508[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Not sure why you chose the FILE permission -- you need the REPLICATION permission. I suggest you re-read [a href=\"http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html\" target=\"_blank\"]this tutorial[/a] on getting replication up and running.

Hope that helps.
[/quote]


Hi

Thanks for ur reply.


Replication is working fine in both the servers.

If there is any problem in one server. replication will stop.

logging following error into log file

resumed in log 'wtjobser-bin.003' at position 16380

how can i replicate the data from this position.

Shashi Kumar
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.