Error esclavo Mysql: Relay log read failure
Si sale este error:
Last_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master’s binary log is corrupted (you can check this by running ‘mysqlbinlog’ on the binary log), the slave’s relay log is corrupted (you can check this by running ‘mysqlbinlog’ on the relay log), a network problem, or a bug in the master’s or slave’s MySQL code. If you want to check the master’s binary log or slave’s relay log, you will be able to know their names by issuing ‘SHOW SLAVE STATUS’ on this slave.
Se puede solucionar ejecutando los siguientes comandos en Mysql, una vez que nos guardemos el valor de «Master_Log_File» y de «Exec_Master_Log_Pos»
STOP SLAVE; RESET SLAVE; CHANGE MASTER TO master_log_file='
db0.000073
', master_log_pos=
528884110
; START SLAVE;
Si despues de hacer esto nos da un error de «Duplicate Entry», podemos ejecutar lo siguiente, para saltar el error:
STOP SLAVE;SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;START SLAVE;Si el error sale numerosas veces se puede hacer que lo salte siempre. Por ejemplo, para el «Duplicate Entry» añadiendo la siguiente línea al my.cnf :
[mysqld]
slave-skip-errors=1062
Comparte este post si te ha resultado útil, así quizás puedas ayudar a alguien que lo necesite.
¡Gracias por tu difusión!
Conocimiento Open Source
Desde siempre intentamos aplicar la filosofía Open Source también con el conocimiento, por ello nació el Blog Open Source, donde nuestros desarrolladores comparten notas, consejos y tutoriales sobre tecnología y desarrollo, soluciones a problemas diarios, bugs o cualquier información que creemos, puede ser interesante.



0 comentarios