Direkt zum Inhalt
MP-Development Code, Bikes and more

XAMPP - MySQL shutdown unexpectedly

Gespeichert von Michael am
xampp logo

Ich hatte gerade das Problem mit XAMPP, dass der MySQL Service nicht starten wollte. Typerweise wird dann folgender Fehler angezeigt:
 

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


Das Problem ist aber relativ schnell behoben. Öffnet über die XAMPP Gui eine Shell und gebt folgenden Befehl ein
 

mysqld --console --skip-grant-tables --skip-external-locking

 

Danach öffnet ihr eine zweite shell und gebt folgendes ein
 

mysqlcheck -r --databases mysql --use-frm

 

Jetzt könnt ihr beide shells wieder schliesen und den MySQL Service in aller Regel wieder über  XAMPP Gui starten.

That`s it!

Neuen Kommentar hinzufügen

CAPTCHA
Diese Sicherheitsfrage überprüft, ob Sie ein menschlicher Besucher sind und verhindert automatisches Spamming.
Blog-Tags