- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们的一台服务器遭到了一群国际黑客的勒索软件攻击。因此,我们重新分组并重新开始,唯一不受影响的数据是存储在 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 配置文件中指定日志文件大小。但我不知道该怎么办。
任何帮助在这里都会派上用场。
最佳答案
在 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了解详情。
关于MySql 服务不会从恢复的 ibdata1 文件启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54840701/
每次启动 Mysql 数据库时,我都会在错误日志中看到: 131015 12:07:06 [Note] Plugin 'FEDERATED' is disabled. 131015 12:07:06
给定一个 mysql ibdata 文件(最初位于 ubuntu 服务器上的 /var/lib/mysql/),有没有办法以人类可读的格式查看它。 我知道无法将其转换为 CSV。它似乎是某种十六进制格
我的 MySQL 服务器运行着 4 个数据库,innodb_data_file_path 设置为默认配置 [ibdata1]。我看到这个文件在磁盘上的大小增长到 1GB。该文件只会随着运行该服务器的应
目前我正在尝试获取已从 mysql 数据库中删除的丢失记录。 我查看了 logfile1 和 logfile0 中的条目,似乎是正确的。 任何可以帮助创建 txt 文件或能够读取文件的查看器或转换将不
是否可以为 InnoDB 中的每个数据库创建一个唯一的 ibdate 文件? 因为如果我在 InnoDB 中创建了多个数据库,它将全部存储在 ibdata1、ibdata2 等... 这使得仅恢复 1
我的问题实际上与这个问题非常相似,并且还包括一个针对 InnoDB Engine 表的案例的很好的答案: https://dba.stackexchange.com/questions/8982/is
您好,我错误地从基于 Windos XP 的 PC 中删除了我的 MySQL 数据库(该数据库用于使用 Xampp 包托管 Wiki 服务)。现在我正在尝试恢复数据,以便至少可以检索在 Mediawi
我有以前版本的 MySQl 中的 .frm、ibdata 和 ib_logfile,现在我已经转移到更新的版本。不幸的是,我没有安装以前的版本,所以我无法进行转储并导入到新的 MySQl 版本中。 请
我有一台服务器,无意中删除了 1 个 InnoDB 表。我只需要恢复这个表的数据,而不需要回滚所有其他使用 InnoDB 的表的数据。我的最新备份是大约 24 小时前的。有什么办法吗? 编辑添加:我应
这个问题与我在 stackoverflow 上看到的相关 InnoDB 修复问题略有不同。 假设我已经使用 innodb_file_per_table=1 在我的 MySQL 5.1 数据库中恢复了以
我是一名优秀的程序员,十分优秀!