MoReP1Us
2019-03-27 00:26
采纳率: 50%
浏览 19.1k

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

在环境变量以及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)

以下是我配置的图片

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

6条回答 默认 最新

  • maxingren90110 2020-02-22 17:37
    已采纳

    E:\SQL\mysql-8.0.15-winx64\bin 目录在这个bin文件下去安装

    点赞 评论
  • yucan_hi 2019-11-01 20:02

    改一下你的my.ini配置文件的路径就好了,默认路径是C盘里的web文件夹,改成你要安装的路径

    点赞 4 评论
  • Soleil_Y 2019-05-31 14:05

    之前我也遇到过同样的问题,我去官网上看了一下,把\换成了/就可以了

    点赞 6 评论
  • MoReP1Us 2019-03-27 07:28

    我的配置图片在上面呀哪里出了问题呢

    点赞 评论
  • 倪弗雷啥 2021-07-08 13:53

    把那个data文件夹删掉,再试试

    点赞 评论
  • hui899y 2019-03-27 00:36

    需要配置环境变量,配置文件有问题

    点赞 评论

相关推荐 更多相似问题