簡體   English   中英

運行 MySQL 時出現 XAMPP 錯誤

[英]XAMPP error with running MySQL

我有問題女巫 XAMPP。 當我嘗試運行 MySQL 時,XAMPP 顯示:

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.iniC:\\xampp\\php\\php.ini中的mysql.default_port=3307 mysqli.default_port=3307

我還刪除了C:\\xampp\\mysql\\data ib_logfile1 ,但它仍然不起作用。 錯誤日志:

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

任何幫助表示贊賞。 謝謝

MySQL確切地告訴您為什么它無法啟動:

[錯誤] InnoDB:無法創建C:\\ xampp \\ mysql \\ data \\ ib_logfile101

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

首先在xampp控制面板上停止該服務,然后單擊左側的紅叉以在您的計算機上安裝該服務,然后該圖標將變為綠色的勾號,然后以管理員身份啟動該服務。

它應該工作正常。

  1. 打開 XAMPP 控制面板並停止操作。
  2. 打開服務,進入MySql80。
  3. 停止服務。
  4. 啟動服務。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM