Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Soo's avatar
Level 2

Recurring Problem in XAMPP (MySQL): How to Solve It?

I work with XAMPP, but there is a problem (MySQL) that appears four times. Initially, I fixed it by creating a new data folder and copying the backup files and the old data file into the new data folder. It worked, but after a few days, the problem repeated itself again. How can I prevent the problem from recurring? this is the problem :

10:15:12  [mysql] 	Error: MySQL shutdown unexpectedly.
10:15:12  [mysql] 	This may be due to a blocked port, missing dependencies, 
10:15:12  [mysql] 	improper privileges, a crash, or a shutdown by another method.
10:15:12  [mysql] 	Press the Logs button to view error logs and check
10:15:12  [mysql] 	the Windows Event Viewer for more clues
10:15:12  [mysql] 	If you need more help, copy and post this
10:15:12  [mysql] 	entire log window on the forums
0 likes
3 replies
projovi's avatar
projovi
Best Answer
Level 1

The solution is Removing the aria_log_control file allowed MariaDB to start again. You can find this file in \xampp\mysql\data. Then restart or start xammp.

2 likes
amitsolanki24_'s avatar

@soo Yes I have same problem when I create new data folder and delete old one it works but after few days its again display same error.

gych's avatar

@soo & @amitsolanki24_ If you keep getting this error and can't find a fix for it, consider using Laragon instead of XAMPP. I moved from XAMPP to Laragon and don't regret it, it has much more features and great community support.

1 like

Please or to participate in this conversation.