MySQL 安装过程中出错(“初始化数据库”失败)

时间:2021-05-27 18:29:09

标签: mysql sql installation

在 Windows 10 中安装 MySQL 社区服务器(应用配置)的最后步骤中,我在初始化数据库时遇到错误。这是日志:

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.25...
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: Can't get stat of 'C:\Users\Public\Documents\Wondershare\CreatorTemp' (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.
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.
Aborting
Process for mysqld, with ID 11240, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.25.
Database initialization failed.
Ended configuration step: Initializing database (may take a long time)

我该怎么做才能解决这个问题?谢谢。

0 个答案:

没有答案
相关问题