前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >InnoDB: ./ib_logfile0 can't be opened in read-write mode

InnoDB: ./ib_logfile0 can't be opened in read-write mode

原创
作者头像
扫地工程师
修改2020-05-11 10:46:42
1.4K0
修改2020-05-11 10:46:42
举报
文章被收录于专栏:微星极光微星极光

title: "Mysql Failed to Start on Mac Due to Innnodb Libdata1 Can Not Be Opened in Read Write Mode"

date: 2020-05-10T17:19:46+08:00

draft: false


Mysql服务进程不能启动: ERROR InnoDB: ./ib_logfile0 can't be opened in read-write mode

背景

昨天重启了macbook之后,今天跑开发, 发现本地mysql连不上, 报错如下

代码语言:txt
复制
2020-05-10T09:18:05.492947Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-05-10T09:18:05.510448Z 0 [ERROR] InnoDB: ./ib_logfile0 can't be opened in read-write mode.
2020-05-10T09:18:05.510492Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-05-10T09:18:05.822586Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-05-10T09:18:05.822614Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-05-10T09:18:05.822621Z 0 [ERROR] Failed to initialize builtin plugins.
2020-05-10T09:18:05.822627Z 0 [ERROR] Aborting

解决方案

  1. 进入/usr/local/var/mysql/ 目录, 删除ib_logfile0文件,
代码语言:txt
复制
rm -rf /usr/local/var/mysql/ib_logfile0
  1. 重启mysqld搞定

原文链接

https://www.wxhmf.com/posts/mysql-failed-to-start-on-mac-due-to-innnodb-libdata1-can-not-be-opened-in-read-write-mode/

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Mysql服务进程不能启动: ERROR InnoDB: ./ib_logfile0 can't be opened in read-write mode
    • 背景
      • 解决方案
        • 原文链接
        相关产品与服务
        云数据库 SQL Server
        腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档