Advertisement
Guest User

Untitled

a guest
Mar 6th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. mysqldump --opt --allow-keywords -q -uroot -ppassword dbname > E:Backupsdbname.sql
  2.  
  3. 1. STOP SLAVE;
  4. 2. DROP DATABASE dbname;
  5. 3. SOURCE dbname.sql;
  6. (... waited a few hours for the 10gb dump to import)
  7. 4. RESET SLAVE;
  8. 5. CHANGE MASTER TO MASTER_HOST='[masterhostname]', MASTER_USER='[slaveusername]', MASTER_PASSWORD='[slaveuserpassword]', MASTER_PORT=[port], MASTER_LOG_FILE='[masterlogfile]', MASTER_LOG_POS=[masterlogposition];
  9. 6. START SLAVE;
  10.  
  11. Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log '[masterlogfile]' position [masterlogpos]
  12.  
  13. --Monitoring: 3:00:00.15
  14.  
  15. Slave Status:
  16. *************************** 1. row ***************************
  17. Slave_IO_State: Waiting for master to send event
  18. Master_Host: 192.168.xxx.xxx
  19. Master_User: slave_user
  20. Master_Port: xxxx
  21. Connect_Retry: 60
  22. Master_Log_File: mysql-bin.000xxx
  23. Read_Master_Log_Pos: 316611912
  24. Relay_Log_File: dbname-relay-bin.00000x
  25. Relay_Log_Pos: 404287513
  26. Relay_Master_Log_File: mysql-bin.000xxx
  27. Slave_IO_Running: Yes
  28. Slave_SQL_Running: Yes
  29. Replicate_Do_DB: dbname
  30. Replicate_Ignore_DB:
  31. Replicate_Do_Table:
  32. Replicate_Ignore_Table:
  33. Replicate_Wild_Do_Table:
  34. Replicate_Wild_Ignore_Table:
  35. Last_Errno: 0
  36. Last_Error:
  37. Skip_Counter: 0
  38. Exec_Master_Log_Pos: 316611912
  39. Relay_Log_Space: 404287513
  40. Until_Condition: None
  41. Until_Log_File:
  42. Until_Log_Pos: 0
  43. Master_SSL_Allowed: No
  44. Master_SSL_CA_File:
  45. Master_SSL_CA_Path:
  46. Master_SSL_Cert:
  47. Master_SSL_Cipher:
  48. Master_SSL_Key:
  49. Seconds_Behind_Master: 0
  50.  
  51. *************************** 1. row ***************************
  52. Id: 98
  53. User: system user
  54. Host:
  55. db: NULL
  56. Command: Connect
  57. Time: 60547
  58. State: Waiting for master to send event
  59. Info: NULL
  60. *************************** 2. row ***************************
  61. Id: 99
  62. User: system user
  63. Host:
  64. db: NULL
  65. Command: Connect
  66. Time: 5
  67. State: Has read all relay log; waiting for the slave I/O thread to update it
  68. Info: NULL
  69. *************************** 3. row ***************************
  70. Id: 119
  71. User: root
  72. Host: localhost:xxxx
  73. db: NULL
  74. Command: Query
  75. Time: 0
  76. State: NULL
  77. Info: SHOW FULL PROCESSLIST
  78.  
  79. --Monitoring: 4:00:02.71
  80.  
  81. Slave Status:
  82. *************************** 1. row ***************************
  83. Slave_IO_State: Waiting for master to send event
  84. Master_Host: 192.168.xxx.xxx
  85. Master_User: slave_user
  86. Master_Port: xxxx
  87. Connect_Retry: 60
  88. Master_Log_File: mysql-bin.000xxx
  89. Read_Master_Log_Pos: 324365637
  90. Relay_Log_File: dbname-relay-bin.00000x
  91. Relay_Log_Pos: 410327741
  92. Relay_Master_Log_File: mysql-bin.000xxx
  93. Slave_IO_Running: Yes
  94. Slave_SQL_Running: No
  95. Replicate_Do_DB: dbname
  96. Replicate_Ignore_DB:
  97. Replicate_Do_Table:
  98. Replicate_Ignore_Table:
  99. Replicate_Wild_Do_Table:
  100. Replicate_Wild_Ignore_Table:
  101. Last_Errno: 0
  102. Last_Error: 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.
  103. Skip_Counter: 0
  104. Exec_Master_Log_Pos: 322652140
  105. Relay_Log_Space: 412041238
  106. Until_Condition: None
  107. Until_Log_File:
  108. Until_Log_Pos: 0
  109. Master_SSL_Allowed: No
  110. Master_SSL_CA_File:
  111. Master_SSL_CA_Path:
  112. Master_SSL_Cert:
  113. Master_SSL_Cipher:
  114. Master_SSL_Key:
  115. Seconds_Behind_Master: NULL
  116.  
  117. *************************** 1. row ***************************
  118. Id: 98
  119. User: system user
  120. Host:
  121. db: NULL
  122. Command: Connect
  123. Time: 64149
  124. State: Waiting for master to send event
  125. Info: NULL
  126. *************************** 2. row ***************************
  127. Id: 122
  128. User: root
  129. Host: localhost:3029
  130. db: NULL
  131. Command: Query
  132. Time: 0
  133. State: NULL
  134. Info: SHOW FULL PROCESSLIST
  135.  
  136. ...
  137. # at 410327570
  138. #120816 3:43:26 server id 1 log_pos 322651969 Intvar
  139. SET INSERT_ID=3842697;
  140. # at 410327598
  141. #120816 3:43:26 server id 1 log_pos 322651997 Query thread_id=762340 exec_time=0 error_code=0
  142. SET TIMESTAMP=1345113806
  143. insert into LOGTABLENAME (UpdateDate, Description) values (now(), "Invalid floating point operation");
  144. # at 410327741
  145. #120816 3:44:26 server id 1 log_pos 322754486 Intvar
  146. SET INSERT_ID=3842701;
  147. # at 410327769
  148. #120816 3:43:26 server id 1 log_pos 322754514 Query thread_id=762340 exec_time=0 error_code=0
  149. SET TIMESTAMP=1345113866;
  150. insert into LOGTABLENAME (UpdateDate, Description) values (now(), "Invalid floating point operation");
  151. # at 410327912
  152. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement