2017-02-07T10:11:42.270567Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 44002250712 and the end 44002250240.
2017-02-07T10:11:42.270606Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2017-02-07T10:11:42.577436Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-02-07T10:11:42.577470Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-02-07T10:11:42.577484Z 0 [ERROR] Failed to initialize plugins.
2017-02-07T10:11:42.577488Z 0 [ERROR] Aborting
Then I had to delete the 2 ib_logfile* files, and it restarted again.
当我安装 MySQL 8.x,编辑 my.ini 文件中的 max _ allow _ pack,然后在 Windows 10机器上重新启动 MySQL 时,我看到了这个错误。为了避免这个问题,我的建议是在十六进制编辑器中编辑 My.ini 文件(类似于 Fred)。不要使用记事本。它会对。Ini 文件。
如果修改 my.ini 不正确,就会发现“本地计算机上的 MySQL 服务启动后停止”的问题。因此,您需要在“ C: ProgramData MySQL MySQL Server 8.0 my.ini”中再次检查 my.ini,以确保没有奇怪的命令。如果您不知道,并希望恢复到原来的,您可以在网上搜索关键字 “ my.ini 配置”,下载最新的,并复制到“ C: ProgramData MySQL 服务器8.0 my.ini”
This problem is so complicated and depend on MySQL Version.My problem was happened on MySQL 8.0.2. When I've config my.ini file on notepad and save it.I soleved following @jhersey29 solution https://stackoverflow.com/a/55519014/1764354 but little different approch.
我得到了和问题中显示的完全一样的信息。我已经尝试了很多建议,但运气不佳。我正要安装 WAMP (我在 Windows 上) ,正要首先卸载 MySql 8.0,这时我注意到安装中包含一个程序: “ MySQL Installer-Community”,所以我尝试了一下。使用这个安装程序,我建立了一个新的连接,向 root 用户添加了密码,添加了另一个使用密码的用户,为所有日志设置了我选择的位置,并运行了安装。
结果就是它现在完全起作用了。
C:\Windows\system32>"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.5\my.ini" --standalone --console
转到“ C: ProgramData MySQL MySQL Server 8.0 Data [ machine name ]。然后检查最后一行-它应该会告诉你为什么它失败了。在我的例子中,数据库之间的表空间 ID 是重复的。
它看起来像这样:
2021-09-12T05:19:22.815152Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2021-09-12T05:19:22.818357Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.22) starting as process 30664
2021-09-12T05:19:22.866774Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-09-12T05:19:22.908983Z 1 [ERROR] [MY-012209] [InnoDB] Multiple files found for the same tablespace ID:
2021-09-12T05:19:22.911667Z 1 [ERROR] [MY-012202] [InnoDB] Tablespace ID: 124 = ['db1\accounts.ibd', 'db2\accounts.ibd']
2021-09-12T05:19:22.915514Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Failed, retry may succeed.
2021-09-12T05:19:22.918627Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2021-09-12T05:19:22.927714Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2021-09-12T05:19:22.930912Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-09-12T05:19:22.934432Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.