Mysql – XAMPP Installation – MySQL shutdown unexpectedly

MySQL

I'm installing XAMPP on my machine. I'm following Derek Banas youtube tutorial, and I also tried myself, but I'm constantly running into the same issues.

I have changed my Apache ports to 1234 (main), and 8181 (SSL) and MySQL ports to (3307). Apache runs fine, but when I run MySQL from the XAMPP control panel it get this error log.

23:11:36 [mysql] Error: MySQL shutdown unexpectedly.

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

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

23:11:36 [mysql] Press the Logs button to view error logs and check

23:11:36 [mysql] the Windows Event Viewer for more clues

23:11:36 [mysql] If you need more help, copy and post this

23:11:36 [mysql] entire log window on the forums.

I have also deleted files from the MySQL folder in the xampp folder recommended in a previous stack overflow question https://stackoverflow.com/a/18162264/9182716

Also when trying to navigate to localhost phpmyadmin I'm prompted with this warning screen.

https://imgur.com/a/7iagc

Best Answer

I had this problem too. If changing MySQL port doesn't solve the issue, which was my case. Simply copy the files in xampp/mysql/backup to xampp/mysql/data. Replace any conflicting files and leave the rest.

Then restart Apache and MySQL from the Xampp control panel.

This should solve the problem.

Related Question