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

在安装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条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?