réplication mysql master/slave ne fonctionne pas

réplication mysql master/slave ne fonctionne pas - SQL/NoSQL - Programmation

Marsh Posté le 18-08-2014 à 21:19:34    

Bonjour à tous j'ai configuré la replication sql entre deux hosts et cela ne fonctionne pas comme il faut
 

Code :
  1. show Master status
  2. [File]: mysql-bin.000033
  3. [Position]: 681177
  4. [Binlog_Do_DB]: ciel
  5. show slave status
  6. [Slave_IO_State]: Waiting for master to send event
  7. [Master_Host]: 4xxxxx
  8. [Master_User]: bmx
  9. [Master_Port]: 3306
  10. [Connect_Retry]: 60
  11. [Master_Log_File]: mysql-bin.000033
  12. [Read_Master_Log_Pos]: 681177
  13. [Relay_Log_File]: mysqld-relay-bin.000002
  14. [Relay_Log_Pos]: 535334
  15. [Relay_Master_Log_File]: mysql-bin.000033
  16. [Slave_IO_Running]: Yes
  17. [Slave_SQL_Running]: Yes
  18. [Replicate_Do_DB]: ciel
  19. [Exec_Master_Log_Pos]: 681177
  20. [Relay_Log_Space]: 535490
  21. [Until_Condition]: None
  22. [Master_SSL_Allowed]: No
  23. [Master_SSL_Verify_Server_Cert]: No


 

Code :
  1. #master my.cnf
  2. server-id=1
  3. #slave my.cnf
  4. server-id=2
  5. master-host = 4xxx
  6. master-user = zd
  7. master-password = dzzd
  8. master-port = 3306
  9. log-slave-updates = 1
  10. binlog-do-db=ciel
  11. master-connect-retry=60
  12. replicate-do-db=ciel


 
Les résultats de la même requête sql

Code :
  1. master:
  2. [data]: 275,32,294,278,279,5,1,101,155,232,7,289,261,137,290,282,68,133,104,69,6,4,156,15,76,443
  3. [lastmod]: 2014-08-18 21:10:02
  4. slave:
  5. [data]: 5,278,294,279,1,275,32,101,155,232,7,289,261,137,290,282,68,133,104,69,6,4,156,15,76,443
  6. [lastmod]: 2014-08-17 22:35:06


 
Merci pour vos lumières  :jap:


Message édité par grosbin le 18-08-2014 à 21:22:25

---------------
Photos Panoramiques Montagnes Haute Savoie
Reply

Marsh Posté le 18-08-2014 à 21:19:34   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed