![初始化 mysql 时出错](https://linux22.com/image/997900/%E5%88%9D%E5%A7%8B%E5%8C%96%20mysql%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我正在尝试在 kubuntu 16.04 上安装和设置 mysql。但是运行时bin/mysqld --initialize --user=mysql
出现以下错误消息:
mysqld: Can't create directory '/usr/local/mysql/data/' (Errcode: 2 -No such file or directory)
2017-02-16T20:49:13.608398Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-02-16T20:49:13.608691Z 0 [ERROR] Can't find error-message file '/usr/local/mysql/share/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2017-02-16T20:49:13.610794Z 0 [ERROR] Aborting
知道原因吗?