MoReP1Us
MoReP1Us
2019-03-27 00:26

在安装MySQL的过程中 中输入mysqld --initialize --console时为什么出现标注的错误的代码?

  • mysql

在环境变量以及my.ini文件都正好以后 再Cmd输入mysqld --initialize --consol之后出现了以下神秘代码。。这是为什么?
E:\SQL\mysql-8.0.15-winx64>mysqld --initialize --console
mysqld: Can't create directory 'C:\Program Files\MySQL\Data\' (OS errno 2 - No such file or directory)
2019-03-26T16:13:27.803255Z 0 [System] [MY-013169] [Server] E:\SQL\mysql-8.0.15-winx64\bin\mysqld.exe (mysqld 8.0.15) initializing of server in progress as process 10504
2019-03-26T16:13:27.803525Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file 'C:\Program Files\MySQL\share\errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2019-03-26T16:13:27.805036Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2019-03-26T16:13:27.809940Z 0 [ERROR] [MY-013236] [Server] Newly created data directory C:\Program Files\MySQL\Data\ is unusable. You can safely remove it.
2019-03-26T16:13:27.876969Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-03-26T16:13:27.877380Z 0 [System] [MY-010910] [Server] E:\SQL\mysql-8.0.15-winx64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.15) MySQL Community Server - GPL.

图在此(https://img-ask.csdn.net/upload/201903/27/1553617467_17340.png)

以下是我配置的图片

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

5条回答