广告
返回顶部
首页 > 资讯 > 数据库 >MySQL —— Database initialization failed 错误处理
  • 257
分享到

MySQL —— Database initialization failed 错误处理

数据库mysqlwindows 2023-10-11 08:10:41 257人浏览 独家记忆
摘要

安装 Mysql 过程中遇到的错误,记录一下,避免下次又遇到同样的错误。 安装 mysql 8.0.33 到最后一步时,出现了小红点无法往下执行了。找了网上的方法解决了问题,为了避免下次遇到同样的问题

安装 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

您可能感兴趣的文档:

--结束END--

本文标题: MySQL —— Database initialization failed 错误处理

本文链接: https://www.lsjlt.com/news/428083.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

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

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作