root@dbserver1:/usr/local/mysql# bin/mysqld --initialize --user=mysql
2018-08-22T09:37:02.595453Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-08-22T09:37:02.596672Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2018-08-22T09:37:02.597123Z 0 [ERROR] Aborting
解决方法:把删除/usr/local/mysql/data下的数据==> rm -rf /usr/local/mysql/data/*