我们的其中一台服务器遭到了国际黑客组织的勒索软件攻击。因此,我们已经重新分组并重新开始,我们唯一不受影响的数据就是存储在mysql程序数据文件夹中的ibdata1文件。
我们想在新实例上恢复该数据,以便继续进行操作,但是在尝试运行新安装的mysql之后,该服务将停止,错误1067。建议删除由InnoDB创建的所有文件:all ibdata文件和所有ib_logfile文件。如果这样做,该服务将运行,但由于需要访问此特定数据文件中的数据而无法执行。我还在我的.cnf文件中添加了这两行
innodb_force_recovery=6
innodb_fast_shutdown=0
那没有用。所以我只删除了日志文件,它创建了新的日志文件,并伴随着这个错误
190223 11:38:48 [Note] Plugin 'FEDERATED' is disabled.
190223 11:38:48 InnoDB: The InnoDB memory heap is disabled
190223 11:38:48 InnoDB: Mutexes and rw_locks use Windows interlocked functions
190223 11:38:48 InnoDB: Compressed tables use zlib 1.2.3
190223 11:38:48 InnoDB: Initializing buffer pool, size = 2.0G
190223 11:38:48 InnoDB: Completed initialization of buffer pool
190223 11:38:48 InnoDB: highest supported file format is Barracuda.
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/error-creating-innodb.html
190223 11:38:48 [ERROR] Plugin 'InnoDB' init function returned error.
190223 11:38:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
190223 11:38:48 [ERROR] Unknown/unsupported storage engine: INNODB
190223 11:38:48 [ERROR] Aborting
Then I replaced the log files with the same ones I used with the original ibdata1 file then I got this error.
190223 12:11:26 [Note] Plugin 'FEDERATED' is disabled.
190223 12:11:26 InnoDB: The InnoDB memory heap is disabled
190223 12:11:26 InnoDB: Mutexes and rw_locks use Windows interlocked functions
190223 12:11:26 InnoDB: Compressed tables use zlib 1.2.3
190223 12:11:26 InnoDB: Initializing buffer pool, size = 2.0G
190223 12:11:26 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file .\ib_logfile0 is of different size 0 1073741824 bytes
InnoDB: than specified in the .cnf file 0 224395264 bytes!
190223 12:11:26 [ERROR] Plugin 'InnoDB' init function returned error.
190223 12:11:26 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
190223 12:11:26 [ERROR] Unknown/unsupported storage engine: INNODB
190223 12:11:26 [ERROR] Aborting
似乎在日志文件中的某处存在一个检查点,这是mysql服务正确读取数据文件所必需的。也许我需要在my.ini配置文件中指定日志文件的大小。但是我不知道该怎么办。
任何帮助在这里都将派上用场。
答案 0 :(得分:0)
在您的my.ini(或my.cnf)文件中,添加(或替换)以下行:
innodb_log_file_size = 1024M
有关详细信息,请参见https://dev.mysql.com/doc/refman/5.6/en/innodb-parameters.html#sysvar_innodb_log_file_size。