Mover escravo mysql

1

Estou tentando mover o MySQL slave do pc antigo para o novo. O escravo original é a versão 5.6.12 do MySQL, igual a um novo escravo (o MySQL é parte do wamp 2.4). A replicação funciona bem na máquina antiga. Mas quando eu paro escravo, copio pasta de dados e my.ini para new e tento iniciar wamp eu recebo:

'2015-12-20 17:07:40 144 [Note] Plugin 'FEDERATED' is disabled.
 2015-12-20 17:07:40 144 [Note] InnoDB: The InnoDB memory heap is disabled
 2015-12-20 17:07:40 144 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
 2015-12-20 17:07:40 144 [Note] InnoDB: Compressed tables use zlib 1.2.3
 2015-12-20 17:07:40 144 [Note] InnoDB: Not using CPU crc32 instructions
 2015-12-20 17:07:40 144 [Note] InnoDB: Initializing buffer pool, size = 1.0G
 2015-12-20 17:07:40 144 [Note] InnoDB: Completed initialization of buffer pool
 2015-12-20 17:07:40 144 [Note] InnoDB: Highest supported file format is Barracuda.
 2015-12-20 17:07:40 144 [Note] InnoDB: The log sequence numbers 3737360739086 and 3737360739086 in ibdata files do not match the log sequence number 3737360743076 in the ib_logfiles!
 2015-12-20 17:07:40 144 [Note] InnoDB: Database was not shutdown normally!
 2015-12-20 17:07:40 144 [Note] InnoDB: Starting crash recovery.
 2015-12-20 17:07:40 144 [Note] InnoDB: Reading tablespace information from the .ibd files...
 2015-12-20 17:07:49 144 [Note] InnoDB: Restoring possible half-written data pages 
 2015-12-20 17:07:49 144 [Note] InnoDB: from the doublewrite buffer...
 InnoDB: Last MySQL binlog file position 0 191213785, file name .\mysql-bin.000337
 2015-12-20 17:07:52 144 [Note] InnoDB: 128 rollback segment(s) are active.
 2015-12-20 17:07:53 144 [Note] InnoDB: Waiting for purge to start
 2015-12-20 17:07:53 144 [Note] InnoDB: 5.6.12 started; log sequence number 3737360743076
 2015-12-20 17:07:53 144 [ERROR] Aborting

 2015-12-20 17:07:53 144 [Note] Binlog end
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'partition'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_FT_DELETED'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_METRICS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_CMPMEM'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_CMP_RESET'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_CMP'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_LOCKS'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'INNODB_TRX'
 2015-12-20 17:07:53 144 [Note] Shutting down plugin 'InnoDB'
 2015-12-20 17:07:53 144 [Note] InnoDB: FTS optimize thread exiting.
 2015-12-20 17:07:53 144 [Note] InnoDB: Starting shutdown...
 2015-12-20 17:07:54 144 [Note] InnoDB: Shutdown completed; log sequence number 3737360748271
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'BLACKHOLE'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'ARCHIVE'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'MRG_MYISAM'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'MyISAM'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'MEMORY'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'CSV'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'sha256_password'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'mysql_old_password'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'mysql_native_password'
 2015-12-20 17:07:54 144 [Note] Shutting down plugin 'binlog'
 2015-12-20 17:07:54 144 [Note] 

E tudo isso. Executando o mysqld-debug:

2015-12-20 17:26:01 2896 [Note] Plugin 'FEDERATED' is disabled.
2015-12-20 17:26:01 2896 [Note] InnoDB: The InnoDB memory heap is disabled
2015-12-20 17:26:01 2896 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-12-20 17:26:01 2896 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-12-20 17:26:01 2896 [Note] InnoDB: Not using CPU crc32 instructions
2015-12-20 17:26:01 2896 [Note] InnoDB: Initializing buffer pool, size = 1.0G
2015-12-20 17:26:01 2896 [Note] InnoDB: Completed initialization of buffer pool
2015-12-20 17:26:01 2896 [Note] InnoDB: Highest supported file format is Barracuda.
2015-12-20 17:26:06 2896 [Note] InnoDB: 128 rollback segment(s) are active.
2015-12-20 17:26:06 2896 [Note] InnoDB: Waiting for purge to start
2015-12-20 17:26:06 2896 [Note] InnoDB: 5.6.12 started; log sequence number 3737360748271
2015-12-20 17:26:06 2896 [Note] Server hostname (bind-address): '*'; port: 3307
2015-12-20 17:26:06 2896 [Note] IPv6 is available.
2015-12-20 17:26:06 2896 [Note]   - '::' resolves to '::';
2015-12-20 17:26:06 2896 [Note] Server socket created on IP: '::'.

Em seguida, conecto-me ao DB, executando a consulta 'SHOW SLAVE STATUS':

Slave_IO_STATE:Connecting to master 
LAST_IO_ERRNO:2003
Last_IO_ERROR:error connecting to master '[email protected]:3306' - retry-time: 60  retries: 5

O firewall está desativado, o IP mestre está disponível (o ping funciona). Eu estou querendo saber, o que está errado - o serviço regular do wamp start falha com nenhum número de erro, o mysqld-debug não pode conectar ao mestre.

O que pode estar errado, quando o escravo roda na vm original sem nenhum problema? Obrigado por todas as respostas.

    
por martin 20.12.2015 / 17:42

2 respostas

0

Apesar do log não mencioná-lo, o MySQL perdeu o arquivo errmsg.sys. Isso foi mencionado no visualizador de eventos do Windows. Depois de copiar errmsg.sys, tudo está ok, escravo funcionando corretamente.

    
por 21.12.2015 / 00:12
0

Você atualizou as concessões para permitir que o novo escravo se conecte?

    
por 20.12.2015 / 17:47