Mysql没有InnoDB引擎的处理

1. 在配置文件里面注释掉skip-innodb

2.删文件:

关闭mysql程序。打开mysql/data目录, 将图中的三个文件删掉。 

3.更改默认引擎

打开mysql/bin目录下的my.ini,将default-strorage-engine=改为INNODB,若没有这一句则直接加入default-strorage-engine=INNODB。 


4.重启mysql服务器

 
 结果还没好,看了一下错误日志:


190421 17:57:36 [Warning] Using unique option prefix myisam_recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
190421 17:57:36 [Note] Plugin 'FEDERATED' is disabled.
190421 17:57:36 InnoDB: The InnoDB memory heap is disabled
190421 17:57:36 InnoDB: Mutexes and rw_locks use Windows interlocked functions
190421 17:57:36 InnoDB: Compressed tables use zlib 1.2.3
190421 17:57:36 InnoDB: Initializing buffer pool, size = 2.0G
InnoDB: VirtualAlloc(2175795200 bytes) failed; Windows error 8
190421 17:57:36 InnoDB: Completed initialization of buffer pool
190421 17:57:36 InnoDB: Fatal error: cannot allocate memory for the buffer pool
190421 17:57:36 [ERROR] Plugin 'InnoDB' init function returned error.
190421 17:57:36 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
190421 17:57:36 [ERROR] Unknown/unsupported storage engine: innodb
190421 17:57:36 [ERROR] Aborting

这是说配置的 innodb_buffer_pool_size = 2G太大了,内存不够了,改为1G,重启服务器就ok了。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值