MySQL启动报错mysqld: Can‘t create directory ‘D:\鏁版嵁搴揬MySQL\mysql-5.7.42-winx64\data\‘

mysqld: Can't create directory 'D:\鏁版嵁搴揬MySQL\mysql-5.7.42-winx64\data\' (Errcode: 2 - No such file or directory) 2023-05-31T10:28:32.026201Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2023-05-31T10:28:32.026243Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2023-05-31T10:28:32.026245Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set. 2023-05-31T10:28:32.026748Z 0 [ERROR] Can't find error-message file 'D:\鏁版嵁搴揬MySQL\mysql-5.7.42-winx64\share\errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive. 2023-05-31T10:28:32.028241Z 0 [ERROR] Aborting、

给同学下载MySQL遇到启动时报错,重新卸载安装了好几次MySQL一直都是这个报错,之后仔细看了一下报错的信息【mysqld: Can't create directory 'D:\鏁版嵁搴揬MySQL\mysql-5.7.42-winx64\data\'】才明白到,应该是中文路径的问题,然后改了一下就好了。

所以如果遇到报错,应该先自己仔细看一下大概意思,然后去尝试修改。

对于以上bug请记住

MySQL的安装路径不要出现中文!不要出现中文!!不要出现中文!!!!!!!!!!!

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值