移动mysql的奴隶

我正在尝试从旧电脑MySQL的奴隶移动到新的。 原始的从机是MySQL版本5.6.12,和新的从机一样(MySQL是2.4的一部分)。 旧机器的复制工作正常。 但是,当我停止奴隶,将数据文件夹和my.ini复制到新的,并尝试启动wamp我得到:

`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] 

而这一切。 运行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: '::'. 

然后我连接到数据库,运行查询“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 

防火墙closures,master ip可用(ping工作)。 我想知道什么是错误的 – 正常的wamp启动服务失败,没有错误号,mysqld-debug无法连接到主。

当从站在原始虚拟机上运行没有任何问题时会出现什么错误? 感谢所有的答案。

你是否更新了授权,以允许新的奴隶连接?

尽pipe日志没有提到它,MySQL错过了errmsg.sys文件。 这是在Windows事件查看器中提到的。 复制errmsg.sys后,一切正常,奴隶正确运行。