MySQL8.0.27安装过程中卡在Initializing Database中并报错的解决

作者:孙不坚1208 时间:2024-01-19 06:35:05 

本文主要介绍了MySQL8.0.27安装过程中卡在Initializing Database中并报错的解决,具有一定的参考价值,具体如下:

MySQL8.0.27安装过程中卡在Initializing Database中并报错的解决

报错信息如下:

Beginning 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.27…
Starting process with command: C:\software\MySQL\MySQL Server 8.0\bin\mysqld.exe --defaults-file=“C:\software\MySQL\Data\MySQL Server 8.0\my.ini” --console --initialize-insecure=on --lower-case-table-names=1…
mysqld: File ‘.\瀛欎笉鍧?208-bin.index’ not found (OS errno 2 - No such file or directory)
‘NO_ZERO_DATE’, ‘NO_ZERO_IN_DATE’ and ‘ERROR_FOR_DIVISION_BY_ZERO’ sql modes should be used with strict mode. They will be merged with strict mode in a future release.
C:\software\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.27) initializing of server in progress as process 11132
The newly created data directory C:\software\MySQL\Data\MySQL Server 8.0\Data\ by --initialize is unusable. You can remove it.
Aborting
C:\software\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.27) MySQL Community Server - GPL.
Process for mysqld, with ID 11132, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.27.
Database initialization failed.
Ended configuration step: Initializing database (may take a long time)

解决方案:

原因:my.ini在创建时不能编译中文然后乱码,然后读取my.ini文件时遇到乱码无法继续运行。

解决办法:将计算机名字、组名等所有中文改成纯英文(右键我的电脑属性–>查看自己的计算机名和组名是否为中文–>更改计算机名和组名–>重启计算机),卸载之前所安装的mysql server,清理注册表,卸载mysql服务,删除data数据,重启计算机使计算机改名生效,重装mysql server。

MySQL8.0.27安装过程中卡在Initializing Database中并报错的解决

如此便成功解决了。

附:清理注册表的方法

Win+R 输入 regedit 运行,进入注册表编辑器,按下图路径,找到MySQL,进而删除MySQL注册表信息。

MySQL8.0.27安装过程中卡在Initializing Database中并报错的解决

来源:https://jumper.blog.csdn.net/article/details/122410412

标签:MySQL,安装,Initializing,Database
0
投稿

猜你喜欢

  • TensorFlow实现指数衰减学习率的方法

    2021-02-20 13:13:55
  • Python流程控制语句的深入讲解

    2023-12-01 00:06:31
  • Python爬虫之urllib基础用法教程

    2023-08-09 08:29:01
  • vue-element-admin项目导入和导出的实现

    2024-05-21 10:29:53
  • Go语言库系列之flag的具体使用

    2024-04-26 17:19:37
  • CSS设计之如何让数字字母自动换行

    2007-10-19 15:12:00
  • python中的list字符串元素排序

    2022-03-14 12:27:14
  • Python使用turtle模块绘制爱心图案

    2022-07-31 06:46:26
  • 详解如何用模块化的方式写vuejs

    2024-04-27 16:08:04
  • JavaScript中实现依赖注入的思路分享

    2024-04-28 09:50:16
  • 详解npm 配置项registry修改为淘宝镜像

    2024-05-08 09:37:55
  • mysql数据库创建账号、授权、数据导出、导入操作示例

    2024-01-26 06:44:42
  • PL/SQL中编写Oracle数据库分页的存储过程

    2024-01-16 08:50:24
  • golang gorm的Callbacks事务回滚对象操作示例

    2024-04-25 13:18:42
  • javascript 文章截取部分无损html显示实现代码

    2024-04-19 09:57:11
  • python threading模块操作多线程介绍

    2021-03-16 20:02:13
  • SQL Server 2012使用Offset/Fetch Next实现分页数据查询

    2024-01-25 03:54:55
  • Python matplotlib的使用并自定义colormap的方法

    2023-02-02 09:41:40
  • Python 网页解析HTMLParse的实例详解

    2022-08-29 06:27:25
  • python排序方法实例分析

    2023-04-07 12:52:05
  • asp之家 网络编程 m.aspxhome.com