Ads 4 You

How can I solve Error: MySQL shutdown unexpectedly

When I open XAMPP and click the start MySQL button, it gives me an error. I had started it just before, but now it isn't working.

09:57:23  [mysql] Error: MySQL shutdown unexpectedly.

09:57:23  [mysql] This may be due to a blocked port, missing dependencies, 

09:57:23  [mysql] improper privileges, a crash, or a shutdown by another method.

09:57:23  [mysql] Press the Logs button to view error logs and check

09:57:23  [mysql] the Windows Event Viewer for more clues

09:57:23  [mysql] If you need more help, copy and post this

09:57:23  [mysql] entire log window on the forums



Simple solution: Open the shell from the XAMPP Control Panel:

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


Then again open another shell and run

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


Now close both shells and restart the XAMPP.







Comments