veminhe 2023-06-29 10:24 采纳率: 22.2%
浏览 19
已结题

安装windown的mysql集群时,启动sql节点失败,报错[ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode

问题遇到的现象和发生背景

参考我本人写的https://blog.csdn.net/heming20122012/article/details/131420914博客安装windown的mysql集群时,启动sql节点失败,报错内容如下,然后自动退出了mysqld
D:\mysqlcluster\sqlnode\mysql\bin>mysqld --console
2023-06-29 10:03:18 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2023-06-29 10:03:18 7196 [Note] Plugin 'FEDERATED' is disabled.
2023-06-29 10:03:18 7196 [Note] InnoDB: Using atomics to ref count buffer pool pages
2023-06-29 10:03:18 7196 [Note] InnoDB: The InnoDB memory heap is disabled
2023-06-29 10:03:18 7196 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2023-06-29 10:03:18 7196 [Note] InnoDB: Compressed tables use zlib 1.2.3
2023-06-29 10:03:18 7196 [Note] InnoDB: Not using CPU crc32 instructions
2023-06-29 10:03:18 7196 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2023-06-29 10:03:18 7196 [Note] InnoDB: Completed initialization of buffer pool
2023-06-29 10:03:18 7196 [ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode
2023-06-29 10:03:18 7196 [ERROR] InnoDB: The system tablespace must be writable!
2023-06-29 10:03:18 7196 [ERROR] Plugin 'InnoDB' init function returned error.
2023-06-29 10:03:18 7196 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2023-06-29 10:03:18 7196 [Note] NDB: Changed global value of binlog_format from STATEMENT to MIXED
2023-06-29 10:03:53 7196 [Warning] NDB: server id set to zero - changes logged to bin log with server id zero will be logged with another server id by slave mysqlds
2023-06-29 10:03:53 7196 [Note] Starting Cluster Binlog Thread
2023-06-29 10:03:53 7196 [ERROR] Unknown/unsupported storage engine: InnoDB
2023-06-29 10:03:53 7196 [ERROR] Aborting

2023-06-29 10:03:53 7196 [Note] Binlog end

操作环境、软件版本等信息

操作环境window10
软件版本mysql-cluster-gpl-7.3.5-winx64.zip

尝试过的解决方法

1、D盘获取管理员权限
2、删除了所有的临时日志文件,包含sql节点下的data目录下的ib_logfile0、ib_logfile1文件,重新执行了一边,启动sql节点还是失败。

我想要达到的结果

启动sql节点成功,且mysql集群搭建成功

  • 写回答

1条回答 默认 最新

  • ayw9403 2023-06-29 10:47
    关注

    根据您尝试过的解决方法,可能会有以下的解决方案推荐:

    确保您以管理员权限运行命令,尝试重新启动SQL节点。
    删除所有临时日志文件(包括data目录下的ib_logfile0和ib_logfile1文件),然后重新启动SQL节点。
    如果上述解决方案无效,您可以尝试以下操作:
    3. 检查是否具有足够的权限来读取和写入’d:\mysqlcluster\sqlnode\mysql\data\ibdata1’文件。如果没有,请获取管理员权限或将其权限更改为可读写。
    4. 确保在启动SQL节点之前,没有其他MySQL进程正在运行。如果有,请终止它们,并确保它们不再占用’ibdata1’文件。
    5. 检查操作系统中是否有任何防火墙或杀毒软件阻止MySQL进程访问文件。如果有,请禁用它们或配置它们以允许MySQL进程访问所需的文件和端口。
    6. 确保您使用的MySQL Cluster版本与您的操作系统兼容。如果版本不兼容,尝试使用与您的操作系统兼容的版本。

    如果以上方法仍然无效,建议查看MySQL Cluster的官方文档、论坛或寻求专业的数据库管理员或技术支持的帮助,以获取更详细和个性化的解决方案。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 7月3日
  • 已采纳回答 6月29日
  • 创建了问题 6月29日

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?