我正在尝试在 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
知道原因吗?