mysql主从同步问题
2013-09-11 16:27
337 查看
show slave status\G *************************** 1. row *************************** Slave_IO_State: Master_Host: 192.168.122.20 Master_User: repli Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysqld-bin.000006 Read_Master_Log_Pos: 193 Relay_Log_File: mysqld-relay-bin.000001 Relay_Log_Pos: 4 Relay_Master_Log_File: mysqld-bin.000006 Slave_IO_Running: No Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: mysql 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: 193 Relay_Log_Space: 106 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 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file' Last_SQL_Errno: 0 Last_SQL_Error: #################################################### 解决方法 1:重启这台Mysql的主服务器的myslq服务 2:重新给这台服务器授权 3:在这台mysql服务器执行sql命令 slave stop; reset slave; slave start; ################################################### show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 192.168.122.20 Master_User: repli Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000006 Read_Master_Log_Pos: 257 Relay_Log_File: mysqld-relay-bin.000008 Relay_Log_Pos: 402 Relay_Master_Log_File: mysql-bin.000006 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: mysql 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: 257 Relay_Log_Space: 854 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 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: 1 row in set (0.00 sec) ############## 总结:虽然解决,但不知道为什么会这样,困惑 还需努力学习mysql
相关文章推荐
- mysql主从同步从库上Slave_IO_Running: Connecting问题
- MYSQL同步--主从同步问题集锦
- MYSQL同步--主从同步问题集锦
- mysql主从同步报错,错误问题看下面详细介绍
- MySQL 主从同步容易出现的问题
- mysql主从同步-问题梳理
- mysql主从同步(2)-问题梳理
- MySQL主从同步、读写分离配置步骤、问题解决
- mysql主从同步-问题梳理
- mysql主从同步问题解决汇总
- mysql主从同步问题
- Mysql-5.5.3-m3 主从同步不支持master-host问题的解决办法
- Cent os mysql主从同步问题
- mysql主从同步延迟问题解决方法
- mysql 主从同步event问题
- mysql主从同步报错问题
- Mysql主从同步延迟问题及解决方案
- mysql主从同步问题思考
- mysql 主从同步问题失败问题
- Mysql 主从同步问题总结