Bug #68878 Fixing 2248 [ERROR] Can't find messagefile
Submitted: 6 Apr 2013 12:37 Modified: 6 May 2013 13:34
Reporter: Mohamed Nabil Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:5.6.10 OS:Windows (Windows 8 64bit)
Assigned to: CPU Architecture:Any
Tags: lc-messages-dir 2248 [ERROR] Can't find messagefile

[6 Apr 2013 12:37] Mohamed Nabil
Description:
=== Bug ====
Installing MySQL 5.6.10 on windows 8 64bit

CMD> SET SERVICE_NAME=mysql
CMD> SET MYSQL_HOME=D:\MySQL\server
CMD> %MYSQL_HOME%\bin\mysqld.exe --remove %SERVICE_NAME%
CMD> %MYSQL_HOME%\bin\mysqld.exe --install-manual %SERVICE_NAME% --defaults-file=%MYSQL_HOME%\my.ini
CMD> net start mysql ; always failed to start mysql service

When try to start mysql by this command
CMD>%MYSQL_HOME%\bin\mysqld --default-file=%MYSQL_HOME%\my.ini --standalone --console

Mysql keep showing this message
2013-04-06 14:16:18 2248 [ERROR] Can't find messagefile 'D:\MySQL erver hare\errmsg.sys'

How to repeat:
Reinstall from scratch removing option lc-messages-dir=D:\MySQL\\server\\share from .cnf or .ini defaults file

Suggested fix:
This error is removed and the service started fine after adding this option unnder [mysqld] section
[mysqld]
lc-messages-dir=D:\MySQL\\server\\share
lc-messages=en_US

=== Fix ===
you have to include lc-messages-dir=D:\MySQL\\server\\share with extra slashe before messing characters from the path reported in error message
i.e:

this path:
D:\MySQL\server\share

will give this error:
[ERROR] Can't find messagefile 'D:\MySQL erver hare\errmsg.sys'

Fix:
Change 
D:\MySQL\server\share

To Become
D:\MySQL\\server\\share
[6 Apr 2013 13:34] MySQL Verification Team
Please check for duplicate with http://bugs.mysql.com/bug.php?id=68856 . Thanks.
[7 May 2013 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".