2017-08-17 141 views
0

我有XAMPP問題。當我嘗試運行MySQL,XAMPP表明這一點:XAMPP運行MySQL錯誤

12:37:02 [mysql] Error: MySQL shutdown unexpectedly. 
12:37:02 [mysql] This may be due to a blocked port, missing dependencies, 
12:37:02 [mysql] improper privileges, a crash, or a shutdown by another method. 
12:37:02 [mysql] Press the Logs button to view error logs and check 
12:37:02 [mysql] the Windows Event Viewer for more clues 
12:37:02 [mysql] If you need more help, copy and post this 
12:37:02 [mysql] entire log window on the forums 

我在 C:\xampp\mysql\bin\my.ini 改變端口3307和C:\xampp\php\php.inimysql.default_port=3307 mysqli.default_port=3307

我也刪除ib_logfile1C:\xampp\mysql\data ,但它仍然無法正常工作。 錯誤日誌:

2017-08-17 12:27:00 2050 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 
2017-08-17 12:27:00 8272 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB. ` 

2017-08-17 12:27:00 8272 [Note] InnoDB: Using mutexes to ref count buffer pool pages 
2017-08-17 12:27:00 8272 [Note] InnoDB: The InnoDB memory heap is disabled 
2017-08-17 12:27:00 8272 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2017-08-17 12:27:00 8272 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 
2017-08-17 12:27:00 8272 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2017-08-17 12:27:00 8272 [Note] InnoDB: Using generic crc32 instructions 
2017-08-17 12:27:00 8272 [Note] InnoDB: Initializing buffer pool, size = 16.0M 
2017-08-17 12:27:00 8272 [Note] InnoDB: Completed initialization of buffer pool 
2017-08-17 12:27:00 8272 [Note] InnoDB: The first specified data file C:\xampp\mysql\data\ibdata1 did not exist: a new database to be created! 
2017-08-17 12:27:00 8272 [Note] InnoDB: Setting file C:\xampp\mysql\data\ibdata1 size to 10 MB 
2017-08-17 12:27:00 8272 [ERROR] InnoDB: Cannot create C:\xampp\mysql\data\ib_logfile101 
2017-08-17 12:27:00 8272 [ERROR] Plugin 'InnoDB' init function returned error. 
2017-08-17 12:27:00 8272 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
2017-08-17 12:27:00 8272 [Note] Plugin 'FEEDBACK' is disabled. 
2017-08-17 12:27:00 8272 [ERROR] Unknown/unsupported storage engine: InnoDB 
2017-08-17 12:27:00 8272 [ERROR] Aborting 

任何幫助表示讚賞。由於

+0

嘗試重新啓動系統。 –

回答

0

MySQL是告訴你究竟爲什麼它不能啓動:

[錯誤] InnoDB的:無法創建C:\ XAMPP的\ mysql的\ DATA \ ib_logfile101

因此,我建議的第一件事你要做的是檢查c:\ xampp \ mysql \ data是否存在,並可由DBMS用戶寫入。

0

首先停止XAMPP控制面板上的服務, 然後點擊左側紅十字會在計算機上安裝的服務, 則圖標會變成一個綠色的勾, 然後啓動服務以管理員身份。

它應該工作正常。