title: what causing an error about 'lc-messages-dir' when i initialize mysql-5.7.17
body: <pre><code>[root@wwwlxg bin]# ./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&amp;VhwEgod4rm
  </code></pre>
  
  <p><hr/>
  hereis my.cnf</p>
  
  <pre><code># These are commonly set, remove the # and set as required.
   basedir = /opt/mysql/
  datadir = /opt/mysql/data
   port = 3306
  server_id = 1
  socket = /tmp/mysql.sock
  lc_messages_dir = /opt/mysql/data
  language = /opt/mysql/share/english
  </code></pre>
  
  <blockquote>
    <p>there is an error about  'lc-messages-dir'  i want to know what's that and how i can fix it?(this question was solved) because i add this to my.cnf :lc_messages_dir = /opt/mysql/data</p>
  </blockquote>
  
  <hr/>
  
  <p>another error when i mysql.server start</p>
  
  <pre><code>ps -ef|grep mysql
  no other mysql is running 
  ls -l /opt/mysql
  im sure /opt/mysql is  mysql:mysql
  </code></pre>
  
  <hr/>
  
  <pre><code>Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/wwwlxg.pid).
  </code></pre>
  
  <hr/>
  
  <blockquote>
    <p>im running: centos6.4  mysql-5.7.17-linux-glibc2.5-x86_64</p>
  </blockquote>