如果数据库异常,请到安装数据库的错误日志里查看错误原因,根据日志中的错误信息去解决问题!!!

这样的错误出现好多次了,这次记住根本解决办法,查看日志!!!

如果日志像下面这样没有[ERROR]的日志出现就ok!

2019-05-20T09:17:23.290060Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-05-20T09:17:23.290118Z 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.
2019-05-20T09:17:23.292216Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.24-log) starting as process 11284 ...
2019-05-20T09:17:23.303832Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-05-20T09:17:23.305119Z 0 [Note] InnoDB: Uses event mutexes
2019-05-20T09:17:23.305639Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2019-05-20T09:17:23.306417Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-20T09:17:23.307034Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB
2019-05-20T09:17:23.308356Z 0 [Note] InnoDB: Number of pools: 1
2019-05-20T09:17:23.308972Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2019-05-20T09:17:23.312122Z 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M
2019-05-20T09:17:23.313453Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-05-20T09:17:23.336093Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-20T09:17:23.381502Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-05-20T09:17:23.382721Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-05-20T09:17:23.397756Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2019-05-20T09:17:23.399753Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-05-20T09:17:23.400641Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-05-20T09:17:23.401513Z 0 [Note] InnoDB: Waiting for purge to start
2019-05-20T09:17:23.453702Z 0 [Note] InnoDB: 5.7.24 started; log sequence number 2591440
2019-05-20T09:17:23.454732Z 0 [Note] InnoDB: Loading buffer pool(s) from C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool
2019-05-20T09:17:23.454733Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-05-20T09:17:23.462381Z 0 [Note] Plugin mysqlx reported: 'Scheduler "work" started.'
2019-05-20T09:17:23.463206Z 0 [Note] Plugin mysqlx reported: 'Scheduler "network" started.'
2019-05-20T09:17:23.468706Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2019-05-20T09:17:23.468820Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190520 17:17:23
2019-05-20T09:17:23.469939Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-20T09:17:23.471506Z 0 [Note] IPv6 is available.
2019-05-20T09:17:23.471961Z 0 [Note]   - '::' resolves to '::';
2019-05-20T09:17:23.472505Z 0 [Note] Server socket created on IP: '::'.
2019-05-20T09:17:23.498822Z 0 [Note] Failed to start slave threads for channel ''
2019-05-20T09:17:23.508962Z 0 [Note] Event Scheduler: Loaded 0 events
2019-05-20T09:17:23.509621Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: ready for connections.
Version: '5.7.24-log'  socket: ''  port: 3306  MySQL Community Server (GPL)
2019-05-20T09:17:23.715912Z 0 [Note] Plugin mysqlx reported: 'Neither MySQL Server nor Mysqlx Plugin has valid SSL configuration'
2019-05-20T09:17:23.716968Z 0 [Warning] Plugin mysqlx reported: 'Failed at SSL configuration: "SSL context is not usable without certificate and private key"'
2019-05-20T09:17:23.718147Z 0 [Note] Plugin mysqlx reported: 'For more information, please see the Using Secure Connections with X Plugin section in the MySQL documentation.'
2019-05-20T09:17:23.719507Z 0 [Note] Plugin mysqlx reported: 'IPv6 is available'
2019-05-20T09:17:23.720236Z 0 [Note] Plugin mysqlx reported: 'X Plugin listens on TCP (bind-address:'::', port:33060)'
2019-05-20T09:17:23.721168Z 0 [Note] Plugin mysqlx reported: 'Server starts handling incoming connections'
2019-05-20T09:17:24.573414Z 5 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2019-05-20T09:17:38.317016Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Normal shutdown

2019-05-20T09:17:38.318472Z 0 [Note] Giving 0 client threads a chance to die gracefully
2019-05-20T09:17:38.319471Z 0 [Note] Shutting down slave threads
2019-05-20T09:17:38.328333Z 0 [Note] Forcefully disconnecting 0 remaining clients
2019-05-20T09:17:38.329363Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-05-20T09:17:38.333663Z 0 [Note] Binlog end
2019-05-20T09:17:38.336809Z 0 [Note] Shutting down plugin 'mysqlx'
2019-05-20T09:17:38.337609Z 0 [Note] Plugin mysqlx reported: 'Exiting'
2019-05-20T09:17:38.338412Z 0 [Note] Plugin mysqlx reported: 'Stopped handling incoming connections'
2019-05-20T09:17:38.339339Z 0 [Note] Plugin mysqlx reported: 'Scheduler "work" stopped.'
2019-05-20T09:17:38.341635Z 0 [Note] Plugin mysqlx reported: 'Scheduler "network" stopped.'
2019-05-20T09:17:38.342911Z 0 [Note] Plugin mysqlx reported: 'Exit done'
2019-05-20T09:17:38.343863Z 0 [Note] Shutting down plugin 'ngram'
2019-05-20T09:17:38.344791Z 0 [Note] Shutting down plugin 'partition'
2019-05-20T09:17:38.345927Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2019-05-20T09:17:38.346797Z 0 [Note] Shutting down plugin 'ARCHIVE'
2019-05-20T09:17:38.347884Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2019-05-20T09:17:38.348798Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2019-05-20T09:17:38.349724Z 0 [Note] Shutting down plugin 'MyISAM'
2019-05-20T09:17:38.350523Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2019-05-20T09:17:38.351412Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2019-05-20T09:17:38.352297Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2019-05-20T09:17:38.354275Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2019-05-20T09:17:38.355236Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2019-05-20T09:17:38.356081Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2019-05-20T09:17:38.357066Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2019-05-20T09:17:38.358306Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2019-05-20T09:17:38.360221Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2019-05-20T09:17:38.361138Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2019-05-20T09:17:38.361987Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2019-05-20T09:17:38.362941Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2019-05-20T09:17:38.363906Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2019-05-20T09:17:38.364846Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2019-05-20T09:17:38.365752Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2019-05-20T09:17:38.366581Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2019-05-20T09:17:38.367373Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2019-05-20T09:17:38.368055Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2019-05-20T09:17:38.368962Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2019-05-20T09:17:38.369814Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2019-05-20T09:17:38.370481Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2019-05-20T09:17:38.371220Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2019-05-20T09:17:38.372122Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2019-05-20T09:17:38.373077Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2019-05-20T09:17:38.374221Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2019-05-20T09:17:38.375164Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2019-05-20T09:17:38.376704Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2019-05-20T09:17:38.377597Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2019-05-20T09:17:38.378422Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2019-05-20T09:17:38.379235Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2019-05-20T09:17:38.380022Z 0 [Note] Shutting down plugin 'InnoDB'
2019-05-20T09:17:38.382133Z 0 [Note] InnoDB: FTS optimize thread exiting.
2019-05-20T09:17:38.383157Z 0 [Note] InnoDB: Starting shutdown...
2019-05-20T09:17:38.484514Z 0 [Note] InnoDB: Dumping buffer pool(s) to C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool
2019-05-20T09:17:38.487359Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 190520 17:17:38
2019-05-20T09:17:39.596742Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2591468
2019-05-20T09:17:39.597755Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-05-20T09:17:39.598414Z 0 [Note] Shutting down plugin 'MEMORY'
2019-05-20T09:17:39.598888Z 0 [Note] Shutting down plugin 'CSV'
2019-05-20T09:17:39.599348Z 0 [Note] Shutting down plugin 'sha256_password'
2019-05-20T09:17:39.599982Z 0 [Note] Shutting down plugin 'mysql_native_password'
2019-05-20T09:17:39.601046Z 0 [Note] Shutting down plugin 'binlog'
2019-05-20T09:17:39.603118Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Shutdown complete

2019-05-20T09:18:00.616438Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-05-20T09:18:00.618419Z 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.
2019-05-20T09:18:00.630801Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.24-log) starting as process 4320 ...
2019-05-20T09:18:00.681342Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-05-20T09:18:00.682350Z 0 [Note] InnoDB: Uses event mutexes
2019-05-20T09:18:00.683029Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2019-05-20T09:18:00.683998Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-20T09:18:00.684802Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB
2019-05-20T09:18:00.689682Z 0 [Note] InnoDB: Number of pools: 1
2019-05-20T09:18:00.693218Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2019-05-20T09:18:00.701522Z 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M
2019-05-20T09:18:00.703996Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-05-20T09:18:00.733231Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-20T09:18:00.804927Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-05-20T09:18:00.806342Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-05-20T09:18:00.820605Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2019-05-20T09:18:00.822834Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-05-20T09:18:00.825709Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-05-20T09:18:00.828785Z 0 [Note] InnoDB: Waiting for purge to start
2019-05-20T09:18:00.880702Z 0 [Note] InnoDB: 5.7.24 started; log sequence number 2591468
2019-05-20T09:18:00.882023Z 0 [Note] InnoDB: Loading buffer pool(s) from C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool
2019-05-20T09:18:00.883464Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-05-20T09:18:00.911871Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190520 17:18:00
2019-05-20T09:18:00.913087Z 0 [Note] Plugin mysqlx reported: 'Scheduler "work" started.'
2019-05-20T09:18:00.914174Z 0 [Note] Plugin mysqlx reported: 'Scheduler "network" started.'
2019-05-20T09:18:00.923582Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2019-05-20T09:18:00.926727Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-20T09:18:00.929136Z 0 [Note] IPv6 is available.
2019-05-20T09:18:00.929749Z 0 [Note]   - '::' resolves to '::';
2019-05-20T09:18:00.930683Z 0 [Note] Server socket created on IP: '::'.
2019-05-20T09:18:00.969912Z 0 [Note] Failed to start slave threads for channel ''
2019-05-20T09:18:01.028409Z 0 [Note] Event Scheduler: Loaded 0 events
2019-05-20T09:18:01.029142Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: ready for connections.
Version: '5.7.24-log'  socket: ''  port: 3306  MySQL Community Server (GPL)
2019-05-20T09:18:01.176012Z 0 [Note] Plugin mysqlx reported: 'Neither MySQL Server nor Mysqlx Plugin has valid SSL configuration'
2019-05-20T09:18:01.177034Z 0 [Warning] Plugin mysqlx reported: 'Failed at SSL configuration: "SSL context is not usable without certificate and private key"'
2019-05-20T09:18:01.178391Z 0 [Note] Plugin mysqlx reported: 'For more information, please see the Using Secure Connections with X Plugin section in the MySQL documentation.'
2019-05-20T09:18:01.179787Z 0 [Note] Plugin mysqlx reported: 'IPv6 is available'
2019-05-20T09:18:01.180530Z 0 [Note] Plugin mysqlx reported: 'X Plugin listens on TCP (bind-address:'::', port:33060)'
2019-05-20T09:18:01.181458Z 0 [Note] Plugin mysqlx reported: 'Server starts handling incoming connections'