MoReP1Us 2019-03-27 00:26 采纳率: 100%
浏览 20841
已采纳

在安装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文件下去安装

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题