什么原因导致 'lc-messages-dir' 出现错误,我该如何修复它

什么原因导致 'lc-messages-dir' 出现错误,我该如何修复它
    ./mysqld --initialize --user=mysql --basedir=/opt/mysql/mysql --datadir=/opt/mysql/mysql/data
    [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    [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.
    [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
    [ERROR] Can't find error-message file '/opt/mysql/mysql/data/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
    [Warning] InnoDB: New log files created, LSN=45790
    [Warning] InnoDB: Creating foreign key constraint system tables.
    [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 73963455-d30a-11e6-bf4f-3aa0c659e827.
    [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
    [Note] A temporary password is generated for root@localhost: t&VhwEgod4rm

there is an error about  'lc-messages-dir'  i want to know what's that and how i can fix it?

我正在运行:centos6.4 mysql-5.7.17-linux-glibc2.5-x86_64

答案1

mysqld 依赖于 errmsg.sys 中的相应值。如果您看到类似这样的错误 - mysqld 无法在该位置找到 errmsg.sys。需要正确安装和/或确保在 my.cnf 中正确配置了 lc_messages_dir

相关内容