MySQL Replication: Difference between revisions
From DWIKI
m (→Clues) |
mNo edit summary |
||
Line 1: | Line 1: | ||
=Links= | |||
*http://dev.mysql.com/doc/refman/5.0/en/replication.html | *http://dev.mysql.com/doc/refman/5.0/en/replication.html | ||
*[http://www.onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html Advanced MySQL Replication Techniques] | *[http://www.onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html Advanced MySQL Replication Techniques] | ||
*http://dev.mysql.com/doc/refman/5.0/en/replication-howto-repuser.html | *http://dev.mysql.com/doc/refman/5.0/en/replication-howto-repuser.html | ||
*http://dev.mysql.com/doc/refman/5.0/en/purge-master-logs.html | *http://dev.mysql.com/doc/refman/5.0/en/purge-master-logs.html | ||
*http://www.howtoforge.com/how-to-repair-mysql-replication | *http://www.howtoforge.com/how-to-repair-mysql-replication |
Revision as of 10:30, 2 December 2008
Links
- http://dev.mysql.com/doc/refman/5.0/en/replication.html
- Advanced MySQL Replication Techniques
- http://dev.mysql.com/doc/refman/5.0/en/replication-howto-repuser.html
- http://dev.mysql.com/doc/refman/5.0/en/purge-master-logs.html
- http://www.howtoforge.com/how-to-repair-mysql-replication
- http://dev.mysql.com/doc/refman/5.0/en/replication-administration-status.html
Useful commands
SHOW SLAVE STATUS SHOW MASTER STATUS SHOW BINARY LOGS SHOW BINLOG EVENTS CHANGE MASTER TO
FAQ
Access denied; you need the SUPER privilege for this operation
grant SUPER on *.* to 'foo'@'bar' etc etc
Waiting for master to send event
http://dev.mysql.com/doc/refman/5.0/en/slave-io-thread-states.html
Continue broken reproduction
On master:
show master status
On slave:
slave stop change master to master_log_file="00000001.bin" change master to master_log_pos=2345 slave start
To skip:
stop slave; SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1; start slave;