MySQL Replication: Difference between revisions

From DWIKI
Line 12: Line 12:
=Useful commands=
=Useful commands=


  SHOW SLAVE STATUS
  [http://dev.mysql.com/doc/refman/5.1/en/show-slave-status.html SHOW SLAVE STATUS]
  SHOW MASTER STATUS
  SHOW MASTER STATUS
  SHOW BINARY LOGS
  SHOW BINARY LOGS

Revision as of 00:21, 26 January 2009

Links

Useful commands

SHOW SLAVE STATUS
SHOW MASTER STATUS
SHOW BINARY LOGS
SHOW BINLOG EVENTS
CHANGE MASTER TO 'repouser'@'masterserver'

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 conflict on a slave:

stop slave;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
start slave;
show slave status;

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

Check firewall :)