[root@jdu4e00u53f7 mysql]# ./bin/mysqld --initialize
2017-10-11T08:31:03.947580Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-10-11T08:31:04.567507Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-10-11T08:31:04.682456Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-10-11T08:31:04.741489Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 8576f7de-ae5e-11e7-a7c2-fa163e0ba239.
2017-10-11T08:31:04.742847Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-10-11T08:31:04.743794Z 1 [Note] A temporary password is generated for root@localhost: +AqqV*AXy7Ih

[root@jdu4e00u53f7 mysql]# ./bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data/
2017-10-12T01:36:56.956816Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-10-12T01:36:56.956886Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2017-10-12T01:36:56.956893Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2017-10-12T01:36:57.235696Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-10-12T01:36:57.288768Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-10-12T01:36:57.348650Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: d5ad7526-aeed-11e7-9c55-fa163e0ba239.
2017-10-12T01:36:57.349765Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-10-12T01:36:57.350646Z 1 [Note] A temporary password is generated for root@localhost: Hu*B2HshcFvg

系统文件已经生成出来了，增加一个my.cnf文件（低版本中，系统文件中包含my.cnf文件）

# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the# *** default location during install, and will be replaced if you# *** upgrade to a newer version of MySQL.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging# changes to the binary log between backups.# log_bin# These are commonly set, remove the # and set as required.# basedir = .....# datadir = .....# port = .....# server_id = .....# socket = .....# Remove leading # to set options mainly useful for reporting servers.# The server defaults are faster for transactions and fast SELECTs.# Adjust sizes as needed, experiment to find the optimal values.# join_buffer_size = 128M# sort_buffer_size = 2M# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
innodb_file_per_table = 1
#skip-grant-tables = 1