Bonjour,
Voilà je n'arrive plus à refaire fonctionner mes deux serveurs MySQL en l'état de master/master.
Sur bdd00, il y a eu une mise à jour de plusieurs milliers de lignes et apparemment cela a généré une erreur sur bdd01 qui n'arrivait pas à exécuter certaines requêtes.
J'ai donc arreté la réplication, fait un dump de la base bdd00 où il y a eu la mise à jour puis importer sur bdd01 et relancé la réplication.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 [ERROR] Slave: Query caused different errors on master and slave. Error on master: 'Query execution was interrupted' (1317), Error on slave: 'no error' (0). Default database: 'annu_siren'. Query: 'insert IGNORE into TBL_SIREN (SELECT i.siren, i.raison_sociale, s.statut_code, m.mng_id, b.bu_code, i.date_maj Sep 10 07:45:05 eprpl-bdd01-pr mysqld[599]: FROM TBL_TEMP_INSERT i, TBL_STATUT s, TBL_BU b, TBL_MANAGER m Sep 10 07:45:05 eprpl-bdd01-pr mysqld[599]: WHERE i.statut = s.statut_lib Sep 10 07:45:05 eprpl-bdd01-pr mysqld[599]: AND i.nom = m.mng_nom Sep 10 07:45:05 eprpl-bdd01-pr mysqld[599]: AND i.prenom = m.mng_prenom Sep 10 07:45:05 eprpl-bdd01-pr mysqld[599]: AND i.email = m.mng_email Sep 10 07:45:05 eprpl-bdd01-pr mysqld[599]: AND i.bu = b.bu_lib)', Error_code: 0 Sep 10 07:45:05 eprpl-bdd01-pr mysqld[599]: 090910 7:45:05 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'mysql-bin.000086' position 71009157
Tout semblait refonctionné et au bout de plusieurs dizaines de minutes c'est retombé avec la même erreur. J'ai alors utilisé la commande reset slave sur bdd01 mais je 'n'arrive toujour pas à redémarré correctement la réplication.
Voici l'état des deux serveurs :
BDD00 :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 mysql> show master status\G *************************** 1. row *************************** File: mysql-bin.000118 Position: 9335578 Binlog_Do_DB: Binlog_Ignore_DB: mysql 1 row in set (0.00 sec) mysql> show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 10.111.129.67 Master_User: replication Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000092 Read_Master_Log_Pos: 98 Relay_Log_File: eprpl-bdd00-pr-relay-bin.001136 Relay_Log_Pos: 235 Relay_Master_Log_File: mysql-bin.000092 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 98 Relay_Log_Space: 235 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 1 row in set (0.00 sec)
BDD01 :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 mysql> show master status\G *************************** 1. row *************************** File: mysql-bin.000092 Position: 98 Binlog_Do_DB: Binlog_Ignore_DB: mysql 1 row in set (0.00 sec) mysql> show slave status\G *************************** 1. row *************************** Slave_IO_State: Master_Host: 10.111.129.66 Master_User: test Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000116 Read_Master_Log_Pos: 4 Relay_Log_File: eprpl-bdd01-pr-relay-bin.000001 Relay_Log_Pos: 98 Relay_Master_Log_File: mysql-bin.000116 Slave_IO_Running: No Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 4 Relay_Log_Space: 254 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL 1 row in set (0.00 sec)
IO_running de bdd01 ne veut plus démarrer. Concernant master log file, il faut qu'il face référence à celui du master de bdd00 ou bdd01?
Comment puis-je résoudre mon problème?
Partager