Пытаюсь прицепить слейв.
На слейве:
Код: Выделить всё
root@www2:/var/db/mysql# mysql -u root -p -e "show slave status\G"
Enter password:
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: www1
Master_User: replica
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000025
Read_Master_Log_Pos: 41288204
Relay_Log_File: www2-relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysql-bin.000025
Slave_IO_Running: No
Slave_SQL_Running: Yes
Replicate_Do_DB: 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: 41288204
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:Юзер replica на мастере есть.
Слейв:
Код: Выделить всё
....
100517 2:45:00 [ERROR] Run recovery again without -q
100517 2:45:00 [Note] Retrying repair of: './db/b_sonet_features' with keycache
100517 2:45:00 [ERROR] Delete link points outside datafile at 304
100517 2:45:00 [Note] Retrying repair of: './db/b_sonet_features2perms' with keycache
100517 2:45:00 [ERROR] Delete link points outside datafile at 304
100517 2:45:00 [ERROR] Couldn't fix table with quick recovery: Found wrong number of deleted records
....
100517 2:45:00 [ERROR] Found block that points outside data file at 11164
100517 2:45:00 [ERROR] Found block with too small length at 12916; Skipped
100517 2:45:00 [ERROR] Found block that points outside data file at 20992
100517 2:45:00 [ERROR] Couldn't fix table with quick recovery: Found wrong number of deleted records
....экранов 20.. это при load data from master сыпется пачками.
Повреждена база? Проверим. (мастер)
sudo mysqlcheck -u root -p -c -e db
Все ОК. Значит, база в норме
Мастер.
Код: Выделить всё
mysql> show binary logs;
Empty set (0.00 sec)
mysql> show binlog events;
ERROR 1220 (HY000): Error when executing command SHOW BINLOG EVENTS: Could not find target log
mysql> show master status;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000002 | 169 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)Бинлог на мастере ведется, растет с положенной скоростью, все файлы из индекса есть. Обновлял версию, до 5.0.90, не помогло (пока на 5.1 не перейти, есть нюансы)