[英]MySQL session won't start on XAMPP
我的 MySQL 無法啟動,顯示如下:
12:50:50 [mysql] Error: MySQL shutdown unexpectedly.
12:50:50 [mysql] This may be due to a blocked port, missing dependencies,
12:50:50 [mysql] improper privileges, a crash, or a shutdown by another method.
12:50:50 [mysql] Press the Logs button to view error logs and check
12:50:50 [mysql] the Windows Event Viewer for more clues
12:50:50 [mysql] If you need more help, copy and post this
12:50:50 [mysql] entire log window on the forums
然后這是錯誤日志:
InnoDB: using atomic writes.
2020-03-05 12:50:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-03-05 12:50:47 0 [Note] InnoDB: Uses event mutexes
2020-03-05 12:50:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-03-05 12:50:47 0 [Note] InnoDB: Number of pools: 1
2020-03-05 12:50:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-03-05 12:50:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-03-05 12:50:47 0 [Note] InnoDB: Completed initialization of buffer pool
2020-03-05 12:50:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-03-05 12:50:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-03-05 12:50:48 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-03-05 12:50:48 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-03-05 12:50:48 0 [Note] InnoDB: Waiting for purge to start
2020-03-05 12:50:48 0 [Note] InnoDB: 10.4.11 started; log sequence number 300306; transaction id 171
2020-03-05 12:50:48 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-03-05 12:50:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-03-05 12:50:48 0 [Note] InnoDB: Buffer pool(s) load completed at 200305 12:50:48
2020-03-05 12:50:48 0 [Note] Server socket created on IP: '::'.
2020-03-05 12:50:48 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2020-03-05 12:50:48 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-03-05 12:50:48 0 [ERROR] Aborting
這些錯誤的原因是什么,我該如何糾正它們?
太感謝了。
對於這個問題去:
c:\\xampp\\mysql\\data\\
並刪除除目錄之外的所有文件
以防萬一保留my.ini,如果再次出錯,也刪除my.ini。
我希望它能幫助你。
非常容易
按照步驟
1.去 xampp\\mysql\\backup 從備份文件夾復制所有內容然后
2.轉到 xampp\\mysql\\data 粘貼從備份文件夾復制的數據文件夾中的所有內容
重新啟動 xampp 並啟動所有。謝謝。
我的MySQL無法啟動,它顯示如下:
12:50:50 [mysql] Error: MySQL shutdown unexpectedly.
12:50:50 [mysql] This may be due to a blocked port, missing dependencies,
12:50:50 [mysql] improper privileges, a crash, or a shutdown by another method.
12:50:50 [mysql] Press the Logs button to view error logs and check
12:50:50 [mysql] the Windows Event Viewer for more clues
12:50:50 [mysql] If you need more help, copy and post this
12:50:50 [mysql] entire log window on the forums
然后這是錯誤日志:
InnoDB: using atomic writes.
2020-03-05 12:50:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-03-05 12:50:47 0 [Note] InnoDB: Uses event mutexes
2020-03-05 12:50:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-03-05 12:50:47 0 [Note] InnoDB: Number of pools: 1
2020-03-05 12:50:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-03-05 12:50:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-03-05 12:50:47 0 [Note] InnoDB: Completed initialization of buffer pool
2020-03-05 12:50:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-03-05 12:50:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-03-05 12:50:48 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-03-05 12:50:48 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-03-05 12:50:48 0 [Note] InnoDB: Waiting for purge to start
2020-03-05 12:50:48 0 [Note] InnoDB: 10.4.11 started; log sequence number 300306; transaction id 171
2020-03-05 12:50:48 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-03-05 12:50:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-03-05 12:50:48 0 [Note] InnoDB: Buffer pool(s) load completed at 200305 12:50:48
2020-03-05 12:50:48 0 [Note] Server socket created on IP: '::'.
2020-03-05 12:50:48 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2020-03-05 12:50:48 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-03-05 12:50:48 0 [ERROR] Aborting
這些錯誤的原因是什么,我該如何糾正?
太感謝了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.