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的安装路径不要出现中文!不要出现中文!!不要出现中文!!!!!!!!!!!

你可能感兴趣的:(mysql,数据库)