[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-03-26T15:28:36.676550Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-03-26T15:28:36.676710Z 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.21) starting as process 4470 ...
2018-03-26T15:28:36.796058Z 0 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test
2018-03-26T15:28:36.796088Z 0 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test
2018-03-26T15:28:36.796148Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
2018-03-26T15:28:36.796193Z 0 [ERROR] Aborting
2018-03-26T15:28:36.796256Z 0 [Note] Binlog end
2018-03-26T15:28:36.796757Z 0 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
[root@localhost bin]# /usr/local/mysql/bin/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/local/mysql/data/mysql.sock' (2)