/usr/local/mysql/mysqld启动不了
root@localhost ~]# /usr/local/mysql/mysqld
-bash: /usr/local/mysql/mysqld: 没有那个文件或目录
[root@localhost ~]# /usr/local/mysql/bin/mysqld
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2 - No such file or directory)
2016-10-25T13:40:17.633868Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-10-25T13:40:17.634141Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2016-10-25T13:40:17.634224Z 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.16) starting as process 23810 ...
2016-10-25T13:40:17.645214Z 0 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test
2016-10-25T13:40:17.645246Z 0 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test
2016-10-25T13:40:17.645321Z 0 [ERROR] failed to set datadir to /var/lib/mysql/
2016-10-25T13:40:17.645339Z 0 [ERROR] Aborting
2016-10-25T13:40:17.645380Z 0 [Note] Binlog end
2016-10-25T13:40:17.645637Z 0 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete