my.ini配置 [client]
 default-character-set=utf8
[mysqld]
 port=3306
 basedir  ="D:\mysql/"
 datadir  ="D:\mysql/data/"
 tmpdir   ="D:\mysql/data/"
 socket   ="D:\mysql/data/mysql.sock"
 log-error="D:\mysql/data/mysql_error.log" max_connections=100
 table_open_cache=256
query_cache_size=1M
 tmp_table_size=32M
 thread_cache_size=8
 innodb_data_home_dir="D:\mysql/data/"
 innodb_flush_log_at_trx_commit =1
 innodb_log_buffer_size=128M
 innodb_buffer_pool_size=128M
 innodb_log_file_size=10M
 innodb_thread_concurrency=16
 innodb-autoextend-increment=1000
 join_buffer_size = 128M
 sort_buffer_size = 32M
 read_rnd_buffer_size = 32M
 max_allowed_packet = 32M
 explicit_defaults_for_timestamp=true
 sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
 #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
------------------------------------------------------------------------------------------------------------------------------------------------------------------
日志如下,MySql服务无法启动:
2015-11-04T09:28:49.677142Z 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.
2015-11-04T09:28:49.677142Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2015-11-04T09:28:49.678142Z 0 [Note] D:\mysql\bin\mysqld (mysqld 5.7.9) starting as process 916 ...
2015-11-04T09:28:49.698143Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-04T09:28:49.700143Z 0 [Note] InnoDB: Uses event mutexes
2015-11-04T09:28:49.701143Z 0 [Note] InnoDB: Memory barrier is not used
2015-11-04T09:28:49.702143Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-04T09:28:49.703143Z 0 [Note] InnoDB: Number of pools: 1
2015-11-04T09:28:49.704143Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-04T09:28:49.754146Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2015-11-04T09:28:49.771147Z 0 [Note] InnoDB: Completed initialization of buffer pool
2015-11-04T09:28:49.786148Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
2015-11-04T09:28:49.788148Z 0 [Note] InnoDB: Setting file 'D:\mysql\data\ibdata1' size to 12 MB. Physically writing the file full; Please wait ...
2015-11-04T09:28:50.052163Z 0 [Note] InnoDB: File 'D:\mysql\data\ibdata1' size is now 12 MB.
2015-11-04T09:28:50.095166Z 0 [Note] InnoDB: Setting log file .\ib_logfile101 size to 10 MB
2015-11-04T09:28:50.322179Z 0 [Note] InnoDB: Setting log file .\ib_logfile1 size to 10 MB
2015-11-04T09:28:50.736203Z 0 [Note] InnoDB: Renaming log file .\ib_logfile101 to .\ib_logfile0
2015-11-04T09:28:50.742203Z 0 [Warning] InnoDB: New log files created, LSN=45790
2015-11-04T09:28:50.744203Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2015-11-04T09:28:50.748203Z 0 [Note] InnoDB: Setting file 'D:\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2015-11-04T09:28:50.996217Z 0 [Note] InnoDB: File 'D:\mysql\data\ibtmp1' size is now 12 MB.
2015-11-04T09:28:51.001218Z 0 [Note] InnoDB: Doublewrite buffer not found: creating new
2015-11-04T09:28:51.253232Z 0 [Note] InnoDB: Doublewrite buffer created
2015-11-04T09:28:51.286234Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2015-11-04T09:28:51.288234Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2015-11-04T09:28:51.299235Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2015-11-04T09:28:51.362238Z 0 [Note] InnoDB: Foreign key constraint system tables created
2015-11-04T09:28:51.365238Z 0 [Note] InnoDB: Creating tablespace and datafile system tables.
2015-11-04T09:28:51.402241Z 0 [Note] InnoDB: Tablespace and datafile system tables created.
2015-11-04T09:28:51.405241Z 0 [Note] InnoDB: Creating sys_virtual system tables.
2015-11-04T09:28:51.427242Z 0 [Note] InnoDB: sys_virtual table created
2015-11-04T09:28:51.430242Z 0 [Note] InnoDB: 5.7.9 started; log sequence number 0
2015-11-04T09:28:51.449243Z 0 [Note] InnoDB: not started
2015-11-04T09:28:51.449243Z 0 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
2015-11-04T09:28:51.452243Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2015-11-04T09:28:51.456244Z 0 [Note] Salting uuid generator variables, current_pid: 916, server_start_time: 1446629329, bytes_sent: 0, 
2015-11-04T09:28:51.469244Z 0 [Note] Generated uuid: '75be6b6a-82d6-11e5-86e6-4487fc62bdce', server_start_time: 1446630245, bytes_sent: 207151992
2015-11-04T09:28:51.472245Z 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: 75be6b6a-82d6-11e5-86e6-4487fc62bdce.
2015-11-04T09:28:51.504246Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2015-11-04T09:28:51.508247Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2015-11-04T09:28:51.511247Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2015-11-04T09:28:51.515247Z 0 [Note] IPv6 is available.
2015-11-04T09:28:51.517247Z 0 [Note]   - '::' resolves to '::';
2015-11-04T09:28:51.518247Z 0 [Note] Server socket created on IP: '::'.
2015-11-04T09:28:51.524248Z 0 [Warning] Failed to open optimizer cost constant tables2015-11-04T09:28:51.528248Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2015-11-04T09:28:51.532248Z 0 [ERROR] Aborting2015-11-04T09:28:51.533248Z 0 [Note] Binlog end
2015-11-04T09:28:51.534248Z 0 [Note] Shutting down plugin 'ngram'
2015-11-04T09:28:51.535248Z 0 [Note] Shutting down plugin 'partition'
2015-11-04T09:28:51.536248Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2015-11-04T09:28:51.538248Z 0 [Note] Shutting down plugin 'ARCHIVE'
2015-11-04T09:28:51.539248Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-11-04T09:28:51.541249Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2015-11-04T09:28:51.542249Z 0 [Note] Shutting down plugin 'MyISAM'
2015-11-04T09:28:51.544249Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2015-11-04T09:28:51.545249Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-11-04T09:28:51.547249Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-11-04T09:28:51.548249Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-11-04T09:28:51.550249Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-11-04T09:28:51.551249Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-11-04T09:28:51.553249Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-11-04T09:28:51.554249Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-11-04T09:28:51.556249Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-11-04T09:28:51.558250Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-11-04T09:28:51.559250Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-11-04T09:28:51.561250Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-11-04T09:28:51.562250Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-11-04T09:28:51.564250Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-11-04T09:28:51.565250Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-11-04T09:28:51.567250Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-11-04T09:28:51.569250Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2015-11-04T09:28:51.570250Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2015-11-04T09:28:51.572250Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-11-04T09:28:51.573250Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-11-04T09:28:51.575250Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-11-04T09:28:51.576251Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-11-04T09:28:51.578251Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-11-04T09:28:51.580251Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-11-04T09:28:51.581251Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-11-04T09:28:51.583251Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-11-04T09:28:51.584251Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2015-11-04T09:28:51.586251Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-11-04T09:28:51.586251Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-11-04T09:28:51.587251Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2015-11-04T09:28:51.588251Z 0 [Note] Shutting down plugin 'InnoDB'
2015-11-04T09:28:51.589251Z 0 [Note] InnoDB: FTS optimize thread exiting.
2015-11-04T09:28:51.589251Z 0 [Note] InnoDB: Starting shutdown...
2015-11-04T09:28:51.690257Z 0 [Note] InnoDB: Dumping buffer pool(s) to D:\mysql\data\ib_buffer_pool
2015-11-04T09:28:51.696257Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 151104 17:28:51
2015-11-04T09:28:53.078336Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1209961
2015-11-04T09:28:53.081337Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2015-11-04T09:28:53.083337Z 0 [Note] Shutting down plugin 'MEMORY'
2015-11-04T09:28:53.085337Z 0 [Note] Shutting down plugin 'CSV'
2015-11-04T09:28:53.086337Z 0 [Note] Shutting down plugin 'sha256_password'
2015-11-04T09:28:53.086337Z 0 [Note] Shutting down plugin 'mysql_native_password'
2015-11-04T09:28:53.087337Z 0 [Note] Shutting down plugin 'binlog'
2015-11-04T09:28:53.088337Z 0 [Note] D:\mysql\bin\mysqld: Shutdown complete