同步故障Last_Errno:1061
1051處理完又出現好多1061的錯誤。
error log報錯如下:
從庫中已經存在相關索引,主庫再新增則報錯。原因還沒弄清楚。
檢視從庫
可以手動刪除報錯的索引,解決如下:
參考:
http://blog.itpub.net/15456724/viewspace-682681/
-
mysql>show slave status\G
-
*************************** 1. row ***************************
-
Slave_IO_State: Waiting for master to send event
-
Master_Host: 10.128.45.8
-
Master_User: slave
-
Master_Port: 3306
-
Connect_Retry: 60
-
Master_Log_File: mysql-bin.000036
-
Read_Master_Log_Pos: 259947402
-
Relay_Log_File: mysqld-relay-bin.000039
-
Relay_Log_Pos: 795208907
-
Relay_Master_Log_File: mysql-bin.000016
-
Slave_IO_Running: Yes
-
Slave_SQL_Running: No
-
Last_Errno: 1061
Last_Error: Error 'Duplicate key name 'Index_Feed_Record_Time'' on query. Default database: 'storefeedback500'. Query: 'ALTER TABLE feedback_record ADD INDEX `Index_Feed_Record_Time` USING BTREE(`feedback_time`)'
-
2015-06-24 08:44:09 2804 [ERROR] Slave SQL: Error 'Duplicate key name 'Index_Feed_Record_person'' on query. Default database: 'storefeedback500'. Query: 'ALTER TABLE feedback_record ADD INDEX `Index_Feed_Record_person` USING BTREE(`feedback_person_id`)', Error_code: 1061
2015-06-24 08:44:09 2804 [Warning] Slave: Duplicate key name 'Index_Feed_Record_person' Error_code: 1061
2015-06-24 08:44:09 2804 [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.000016' position 795212720
2015-06-24 08:48:32 2804 [Warning] Slave SQL: If a crash happens this configuration does not guarantee that the relay log info will be consistent, Error_code: 0
2015-06-24 08:48:32 2804 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000016' at position 795212720, relay log './mysqld-relay-bin.000039' position: 795212883
檢視從庫
- mysql> show index from feedback_record;
-
+--------------+---------+---------------+-----------+------------+----------+------------+---------+-------+------+---------+------+-----+
-
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
-
+--------------+---------+---------------+-----------+------------+----------+------------+---------+-------+------+---------+------+-----+
-
| feedback_record | 0 | PRIMARY | 1 | id | A | 1424178 | NULL | NULL | | BTREE | | |
-
| feedback_record | 1 | FK_Reference_10 | 1 | feedback_id | A | 41 | NULL | NULL | YES | BTREE | | |
-
| feedback_record | 1 | Index_Feed_Record_person | 1 | feedback_person_id | A | 20 | NULL | NULL | YES | BTREE | | |
-
| feedback_record | 1 | Index_Feed_Record_Time | 1 | feedback_time | A | 27388 | NULL | NULL | | BTREE | | |
- +--------------+---------+---------------+-----------+------------+----------+------------+---------+-------+------+---------+------+-----+
-
mysql> use storefeedback500
-
mysql> drop index feedback_index_sponsor_id on feedback;
- mysql> start slave
http://blog.itpub.net/15456724/viewspace-682681/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26831783/viewspace-1710005/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 同步故障Last_Errno:1051AST
- 同步故障Last_Errno: 1091AST
- 【Mysql】mysql同步錯誤:Last_Errno: 1677MySqlAST
- mysql主從不同步報錯Last_Errno 1197MySqlAST
- POJ1061擴充套件歐幾里得定理套件
- 【Mysql】Last_Errno: 1755--parallel mode errorMySqlASTParallelError
- Oracle DG同步失敗故障處理(二)Oracle
- 故障分析 | MySQL 從機故障重啟後主從同步報錯案例分析MySql主從同步
- DAOS 分散式非同步物件儲存|故障模型分散式非同步物件模型
- 線上MYSQL同步報錯故障處理總結MySql
- MySQL 常見同步複製故障處理方法MySql
- 線上MYSQL同步報錯故障處理方法總結MySql
- oracle dataguard資料同步故障處理一例Oracle
- Slave_SQL_Running:Nomysql同步故障解決方法MySql
- [zt]Logical standby同步故障的處理過程
- HDU - 1061 Rightmost Digit(二分快速冪板題)Git
- 微軟開始修正Outlook同步異常問題 未透露故障原因微軟
- mysql GTID主從複製故障後不停機恢復同步流程MySql
- 故障分析 | redis cluster 從庫無法自動恢復同步案例一則Redis
- HACMP規劃、安裝、解除安裝以及故障恢復後的重新同步ACM
- asm故障組故障組ASM
- 故障分析 | Greenplum Segment 故障處理
- 【故障處理】因AIX非同步IO沒有開啟導致SQL*Plus不可用AI非同步SQL
- 光纖故障診斷和故障排查
- 故障排查
- 故障分析 | Kubernetes 故障診斷流程
- DATAGUARD主庫重做日誌不能同步至備庫 alert日中報ORA-12170故障處理
- 網路故障排除工具 | 快速定位網路故障
- cpu故障現象分析 CPU常見故障案例
- GC故障2GC
- GC故障3GC
- 同步和非同步非同步
- 故障案例:主從同步報錯Fatal error: The slave I/O thread stops because master and slave have equal MySQL server主從同步ErrorthreadASTMySqlServer
- 【故障處理】一次RAC故障處理過程
- 常見硬碟故障大全 硬碟故障解決辦法大全硬碟
- java同步與非同步Java非同步
- JS 非同步和同步JS非同步
- 同步方法及同步塊