问题描述:

非正常关闭mysql,同时更改了my.cnf 导致启动时不支持innodb,出现如下错误:

 

[ERROR] Plugin ‘InnoDB’ init function returned error.

[ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.

[ERROR] Unknown/unsupported table type: InnoDB

[ERROR] Aborting


解决办法:

删除log文件和data的初始化文件  

重新运行mysql_install_db

再启动

注意: 修改数据目录的权限,要不容易出现“Can't create test file /var/lib/mysql/Xiaojia.lower-test“ 这个问题。

相关文章:

  • 2021-11-28
  • 2021-10-26
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-06-30
  • 2021-04-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2021-11-08
  • 2021-08-08
  • 2021-12-27
  • 2021-11-08
  • 2022-12-23
相关资源
相似解决方案