昨天运行良好,但现在mysql由于未知原因突然停止。
我试图将其包含在[mysql]下的my.ini文件中 innodb_force_recovery = 1 但这没有任何作用。
mysql_error.log
2019-08-08 9:39:45 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-08 9:39:45 0 [Note] InnoDB: Uses event mutexes
2019-08-08 9:39:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-08 9:39:45 0 [Note] InnoDB: Number of pools: 1
2019-08-08 9:39:45 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-08-08 9:39:45 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2019-08-08 9:39:45 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-08 9:39:45 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-08-08 9:39:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-08-08 9:39:45 0 [Note] InnoDB: Setting file 'D:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-08 9:39:45 0 [Note] InnoDB: File 'D:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2019-08-08 9:39:45 0 [Note] InnoDB: 10.3.16 started; log sequence number 3937615; transaction id 2345
2019-08-08 9:39:45 0 [Note] InnoDB: Loading buffer pool(s) from D:\xampp\mysql\data\ib_buffer_pool
2019-08-08 9:39:45 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-08 9:39:45 0 [Note] Server socket created on IP: '::'.
2019-08-08 9:39:45 0 [Note] InnoDB: Buffer pool(s) load completed at 190808 9:39:45
在Xampp上显示错误:
9:39:44 AM [mysql] Attempting to start MySQL app...
9:39:45 AM [mysql] Status change detected: running
9:40:01 AM [mysql] Status change detected: stopped
9:40:01 AM [mysql] Error: MySQL shutdown unexpectedly.
9:40:01 AM [mysql] This may be due to a blocked port, missing dependencies,
9:40:01 AM [mysql] improper privileges, a crash, or a shutdown by another method.
9:40:01 AM [mysql] Press the Logs button to view error logs and check
9:40:01 AM [mysql] the Windows Event Viewer for more clues
9:40:01 AM [mysql] If you need more help, copy and post this
9:40:01 AM [mysql] entire log window on the forums
答案 0 :(得分:0)
这可能是由于端口阻塞,缺少依赖项, 9:40:01 AM [mysql]权限不当,崩溃或通过其他方法关闭。
按照日志,防火墙或防病毒软件阻止了MySQL端口。尝试允许防火墙端口,并在防火墙上添加期望值并在最后检查。