安装Windows (x86, 64-bit), ZIP Archive,运行cmd,有问题。

Microsoft Windows 版本 6.3.9600 2013 Microsoft Corporation。保留所有权利。

C:\Users\win8>
C:\Users\win8>d:

D:>cd D:\mysql-5.7.17-winx64\bin

D:\mysql-5.7.17-winx64\bin>mysqld -initialize
mysqld: Can't change dir to 'D:\javaEnvironment\mysql-5.7.12-winx64\data\' (Errc
ode: 2 - No such file or directory)
2017-03-26T15:09:54.745884Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'E
RROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will
be merged with strict mode in a future release.
2017-03-26T15:09:54.745884Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not s
et.
2017-03-26T15:09:54.745884Z 0 [Note] --secure-file-priv is set to NULL. Operatio
ns related to importing and exporting data are disabled
2017-03-26T15:09:54.746887Z 0 [Note] mysqld (mysqld 5.7.17) starting as process
2912 ...
2017-03-26T15:09:54.746887Z 0 [ERROR] Can't find error-message file 'D:\javaEnvi
ronment\mysql-5.7.12-winx64\share\errmsg.sys'. Check error-message file location
and 'lc-messages-dir' configuration directive.
2017-03-26T15:09:54.748888Z 0 [Warning] Can't create test file D:\javaEnvironmen
t\mysql-5.7.12-winx64\data\acer.lower-test
2017-03-26T15:09:54.748888Z 0 [Warning] Can't create test file D:\javaEnvironmen
t\mysql-5.7.12-winx64\data\acer.lower-test
2017-03-26T15:09:54.749899Z 0 [ERROR] failed to set datadir to D:\javaEnvironmen
t\mysql-5.7.12-winx64\data\
2017-03-26T15:09:54.753890Z 0 [ERROR] Aborting

2017-03-26T15:09:54.755920Z 0 [Note] Binlog end
2017-03-26T15:09:54.756898Z 0 [Note]

D:\mysql-5.7.17-winx64\bin>

1个回答

windows里安装mysql直接运行installer,不要用zip archive

qq_37022283
qq_37022283 谢谢
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐