【发布时间】:2021-03-26 22:59:09
【问题描述】:
我是 MySQL 新手,我不知道为什么,但 MySQL 不是从 XAMPP 开始的。 我以为 3306 端口被阻塞了,但我检查了一下,该端口上没有运行任何东西。 如果我去 XAMPP,这就是打印的内容:
10:23:52 [mysql] Status change detected: running
10:23:54 [mysql] Status change detected: stopped
10:23:54 [mysql] Error: MySQL shutdown unexpectedly.
10:23:54 [mysql] This may be due to a blocked port, missing dependencies,
10:23:54 [mysql] improper privileges, a crash, or a shutdown by another method.
10:23:54 [mysql] Press the Logs button to view error logs and check
10:23:54 [mysql] the Windows Event Viewer for more clues
10:23:54 [mysql] If you need more help, copy and post this
10:23:54 [mysql] entire log window on the forums
这是错误日志:
2020-12-16 10:17:54 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-12-16 10:17:54 0 [Note] InnoDB: Uses event mutexes
2020-12-16 10:17:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-12-16 10:17:54 0 [Note] InnoDB: Number of pools: 1
2020-12-16 10:17:54 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-12-16 10:17:54 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-12-16 10:17:54 0 [Note] InnoDB: Completed initialization of buffer pool
2020-12-16 10:17:55 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-12-16 10:17:55 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-12-16 10:17:55 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-12-16 10:17:55 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-12-16 10:17:55 0 [Note] InnoDB: Waiting for purge to start
2020-12-16 10:17:55 0 [Note] InnoDB: 10.4.14 started; log sequence number 1699607; transaction id 3902
2020-12-16 10:17:55 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-12-16 10:17:55 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-12-16 10:17:55 0 [Note] Server socket created on IP: '::'.
谁能帮我解决这个问题?
【问题讨论】:
-
你检查过3306端口没有被其他进程使用吗?
-
是的,这是我做的第一件事,但这不是问题所在。该端口上没有运行任何东西
-
hmm,一定有问题,因为你的 MySQL 日志没有任何错误。也许您可以尝试更改 MySQL 端口。看看有没有运气
-
我不知道为什么,但我复制了数据库并重新安装了 XAMPP。错误现在消失了,一切似乎都运行良好。即使日志中没有错误,我仍然对以前的问题没有任何想法。