跳至主要內容

MySQL

程序员李某某原创经验mysql大约 1 分钟

MySQL

win安装时报错

如图

image-20240706195451511
image-20240706195451511

日志

Beginning configuration step: Initializing Database
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 8.0.15...
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...
mysqld: File '.\鏈烘闈╁懡-娣辨捣娉?bin.index' not found (OS errno 2 - No such file or directory)
2019-02-26T13:33:51.364118Z 0 [Warning] [MY-010915] [Server] '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.
2019-02-26T13:33:51.364234Z 0 [System] [MY-013169] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.15) initializing of server in progress as process 7912
2019-02-26T13:33:51.373027Z 0 [ERROR] [MY-013236] [Server] Newly created data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable. You can safely remove it.
2019-02-26T13:33:51.374077Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-02-26T13:33:51.374228Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.15) MySQL Community Server - GPL.
Process for mysqld, with ID 7912, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.15.
Database initialization failed.
image-20240706195524491
image-20240706195524491

默认的日志路径可能有中文字符,和计算机名称有关系

打开日志配置选项 --- Show Advanced and Logging Options

image-20240706195133156
image-20240706195133156

进行配置

image-20240706195358225
image-20240706195358225
上次编辑于:
贡献者: 李元昊