MYSQL error message Can’t find error-message file

created at 11-12-2021 views: 4

Install MYSQL
In execution

mysqld --initialize --console

encountered an error

2021-11-06T18:04:30.907573Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file 'C: ofterwaresetting\mySQL\mysql-8.0.11-winx64 hare\english\errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.

After checking many tutorials, I found that there was a problem with the escape character.

In short, in the my.ini file, change the path to a double slash \.
E.g:

basedir=C:\\softerwaresetting\\mySQL\\mysql-8.0.11-winx64
datadir=C:\\softerwaresetting\\mySQL\\mysql-8.0.11-winx64\\Data
lc-messages-dir=C:\\softerwaresetting\\mySQL\\mysql-8.0.11-winx64\\share\\english
created at:11-12-2021
edited at: 11-12-2021: