Thursday, April 15, 2010

[Level 2] Can't find message file on MySQL

If you have the same problem, you can use --language to assign language directory, Ex:

# ./bin/mysqld --user=mysql
100415 14:43:50 [ERROR] Can't find messagefile '/usr/share/english/errmsg.sys'
100415 14:43:50 [Note] Plugin 'FEDERATED' is disabled.
100415 14:43:50  InnoDB: Started; log sequence number 0 4604259
100415 14:43:50 [ERROR] Aborting
100415 14:43:50  InnoDB: Starting shutdown...
100415 14:43:56  InnoDB: Shutdown completed; log sequence number 0 4604259
100415 14:43:56 [Note]
#
# ./bin/mysqld --user=mysql --language=./share/english
100415 14:43:58 [Note] Plugin 'FEDERATED' is disabled.
100415 14:43:58  InnoDB: Started; log sequence number 0 4604259
100415 14:43:58 [Note] Event Scheduler: Loaded 0 events
100415 14:43:58 [Note] ./bin/mysqld: ready for connections.
Version: '5.1.45'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

Wish this helps.

regards,
Stanley Huang