我的编程空间,编程开发者的网络收藏夹
学习永远不晚

MySQL —— Database initialization failed 错误处理

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

MySQL —— Database initialization failed 错误处理

安装 MySQL 过程中遇到的错误,记录一下,避免下次又遇到同样的错误。

安装 MySQL 8.0.33 到最后一步时,出现了小红点无法往下执行了。找了网上的方法解决了问题,为了避免下次遇到同样的问题,所以来记录一下解决方法。

打印的错误 log 信息如下:

Successfully added the Windows Firewall rule.Ended configuration step: Updating Windows Firewall rulesBeginning configuration step: Adjusting Windows serviceAttempting to grant the required filesystem permissions to the 'NT AUTHORITY\NetworkService' account.Granted permissions to the data directory.Adding new serviceNew service addedEnded configuration step: Adjusting Windows serviceBeginning configuration step: Initializing database (may take a long time)Attempting to run MySQL Server with --initialize-insecure option...Starting process for MySQL Server 8.0.33...Starting process with command: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --console --initialize-insecure=on --lower-case-table-names=1...C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.33) initializing of server in progress as process 16316mysqld: File '.\浜掕紑鍙戦儴-鐬?bin.index' not found (OS errno 2 - No such file or directory)The designated data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable. You can remove all files that the server added to it.AbortingC:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.33)  MySQL Community Server - GPL.Process for mysqld, with ID 16316, was run successfully and exited with code 1.Failed to start process for MySQL Server 8.0.33.Database initialization failed.Ended configuration step: Initializing database (may take a long time)

首先,回退到下面这个界面:
在这里插入图片描述

到了 “Logging Options” 这一步时,将下面圈出来的几处的乱码手动修改为如下:
在这里插入图片描述

my.ini 文件同步也会更新如下:
在这里插入图片描述
做了这些修改之后,就安装成功了。

来源地址:https://blog.csdn.net/HH18700418030/article/details/130532482

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

MySQL —— Database initialization failed 错误处理

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

ORA-28510: heterogeneous database link initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-28510: heterogeneous database link initialization failedCause: Initialization of a heterogeneous database link
ORA-28510: heterogeneous database link initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-21526: initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-21526: initialization failedCause: The initialization sequence failed. This can happen, for example, if an
ORA-21526: initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-29272: initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-29272: initialization failedCause: The UTL_HTTP package failed to initialize.Action: Free up some memory or
ORA-29272: initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-24311: memory initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-24311: memory initialization failedCause: Cannot initialize user memory.Action: Contact customer
ORA-24311: memory initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-48400: ADRCI initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-48400: ADRCI initialization failedCause: The ADR Base directory does not existAction: Either create an ADR Base
ORA-48400: ADRCI initialization failed ORACLE 报错 故障修复 远程处理
2023-11-04

ORA-00065: initialization of FIXED_DATE failed ORACLE 报错 故障修复 远程处理

文档解释ORA-00065: initialization of FIXED_DATE failedCause: The FIXED_DATE string was not in date format
ORA-00065: initialization of FIXED_DATE failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-12640: Authentication adapter initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-12640: Authentication adapter initialization failedCause: The function specified in the authentication table
ORA-12640: Authentication adapter initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-27146: post/wait initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-27146: post/wait initialization failedCause: OS system call failedAction: check errno and contact Oracle
ORA-27146: post/wait initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-31036: XSL processing context initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-31036: XSL processing context initialization failedCause: A error occurred while creating a XSL context.Action:
ORA-31036: XSL processing context initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-30163: The thread safety initialization failed ORACLE 报错 故障修复 远程处理

文档解释ORA-30163: The thread safety initialization failedCause: The call to SlgInit failed in OCIFileInit.Action: Contact
ORA-30163: The thread safety initialization failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16613: initialization in progress for database ORACLE 报错 故障修复 远程处理

文档解释ORA-16613: initialization in progress for databaseCause: A request was made that required access to the Data Guard
ORA-16613: initialization in progress for database ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16755: failed to set initialization parameter ORACLE 报错 故障修复 远程处理

文档解释ORA-16755: failed to set initialization parameterCause: The Data Guard broker failed to set an initialization
ORA-16755: failed to set initialization parameter ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-01501: CREATE DATABASE failed ORACLE 报错 故障修复 远程处理

文档解释ORA-01501: CREATE DATABASE failedCause: An error occurred during create databaseAction: See accompanying
ORA-01501: CREATE DATABASE failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16653: failed to reinstate database ORACLE 报错 故障修复 远程处理

文档解释ORA-16653: failed to reinstate databaseCause: The Data Guard broker failed to reinstate the specified database
ORA-16653: failed to reinstate database ORACLE 报错 故障修复 远程处理
2023-11-04

ORA-38760: This database instance failed to turn on flashback database ORACLE 报错 故障修复 远程处理

文档解释ORA-38760: This database instance failed to turn on flashback databaseCause: Database flashback is on but this
ORA-38760: This database instance failed to turn on flashback database ORACLE 报错 故障修复 远程处理
2023-11-05

编程热搜

目录