1、首先得学会看错误日志,才是解决之道。
2018-01-01T13:29:52.099110Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-01T13:29:54.349114Z 0 [Warning] InnoDB: New log files created, LSN=45790
2018-01-01T13:29:54.755362Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-01-01T13:29:54.974107Z 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: da987eee-eef7-11e7-94be-525400ccc3f2.
2018-01-01T13:29:55.020988Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2018-01-01T13:29:55.083721Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2018-01-01T13:30:30.537259Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-01T13:30:30.537259Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-01-01T13:30:30.537259Z 0 [Note] MySQL (mysqld 5.7.19) starting as process 2344 ...
2018-01-01T13:30:30.537259Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-01-01T13:30:30.537259Z 0 [Note] InnoDB: Uses event mutexes
2018-01-01T13:30:30.537259Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2018-01-01T13:30:30.537259Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-01-01T13:30:30.537259Z 0 [Note] InnoDB: Number of pools: 1
2018-01-01T13:30:30.537259Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2018-01-01T13:30:30.537259Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-01-01T13:30:30.552802Z 0 [Note] InnoDB: Completed initialization of buffer pool
2018-01-01T13:30:30.615317Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2018-01-01T13:30:30.943446Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-01-01T13:30:30.959300Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-01-01T13:30:31.162289Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2018-01-01T13:30:31.162289Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2018-01-01T13:30:31.162289Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2018-01-01T13:30:31.162289Z 0 [Note] InnoDB: Waiting for purge to start
2018-01-01T13:30:31.224765Z 0 [Note] InnoDB: 5.7.19 started; log sequence number 2540777
2018-01-01T13:30:31.224765Z 0 [Note] Plugin 'FEDERATED' is disabled.
2018-01-01T13:30:31.224765Z 0 [Note] InnoDB: Loading buffer pool(s) from C:\Java\mysql\mysql-5.7.19-winx64\data\ib_buffer_pool
2018-01-01T13:30:31.302821Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2018-01-01T13:30:31.302821Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2018-01-01T13:30:31.302821Z 0 [Note] IPv6 is available.
2018-01-01T13:30:31.302821Z 0 [Note] - '::' resolves to '::';
2018-01-01T13:30:31.302821Z 0 [Note] Server socket created on IP: '::'.
2018-01-01T13:30:31.505965Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180101 21:30:31
2018-01-01T13:30:31.521566Z 0 [Note] Event Scheduler: Loaded 0 events
2018-01-01T13:30:31.537285Z 0 [Note] MySQL: ready for connections.
Version: '5.7.19' socket: '' port: 3306 MySQL Community Server (GPL)
2018-01-01T13:30:31.537285Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
2018-01-01T13:30:31.537285Z 0 [Note] Beginning of list of non-natively partitioned tables
2018-01-01T13:30:31.599704Z 0 [Note] End of list of non-natively partitioned tables