Syed Abdul Wasay
Syed Abdul Wasay

Reputation: 1

MySQL Server Shutting Down Unexpectedly on XAMPP

I'm encountering an issue where my MySQL server on XAMPP shuts down unexpectedly. The error message in the XAMPP control panel states Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method.

So far, I've tried:

Any help on how to fix this would be greatly appreciated!

Upvotes: -1

Views: 67

Answers (2)

2CStarsOnceMore
2CStarsOnceMore

Reputation: 1

I encountered this error to, and found a solution that worked for me, though i don't know why it works nor what the cause of the error is. I got this error and then reinstalled XAMPP, used my server for a few hours and the next time I started it up, had the error again. After searching around I found the following:

  1. Go to "xampp root on your computer/Mysql/Data/"
  2. Rename any and all files starting with 'ib_logfile'. Rename, instead of delete so if you need or want to you can replace them.

I found the solution on this site

Upvotes: 0

michael peterson
michael peterson

Reputation: 1

I have faced this problem before and it was because of i had installed mysql itself seperately from xampp before. maybe it is the same thing for you. maybe a mysql server is running in a background in your system. if your using windows go to your Services.msc. for that press windows+R, type Services.msc then try to find mysql and then righ-click on it and then stop. i hope it works.

Upvotes: 0

Related Questions