How To Fix the XAMPP Error: MySQL shutdown unexpectedly

preview_player
Показать описание
If you're experiencing an issue with XAMPP when attempting to run MySQL on Windows 10 x64 and it shuts down unexpectedly, follow these steps to resolve the issue:

1. Change the name of the "mysql/data" folder to "mysql/data_old".
2. Create a new folder named "mysql/data".
3. Transfer the contents of "mysql/backup" to the newly created "mysql/data" folder.
4. Move all database folders from "mysql/data_old" to "mysql/data", excluding the "mysql", "performance_schema", and "phpmyadmin" folders.
5. Replace the "ibdata1" file in the "mysql/data" folder with the one from "mysql/data_old".
6. Finally, start MySQL from the XAMPP control panel.

Note: XAMPP automatically creates backups, which can be found in the folder where it was installed.

The "MySQL shutdown unexpectedly" error is most often caused by a conflict with another program or a problem with the MySQL configuration. Check if there is any other application already using the same port (usually 3306) that MySQL is configured to run on. Port conflicts can cause MySQL to shut down. You can change the MySQL port in the XAMPP configuration if needed.
Рекомендации по теме
Комментарии
Автор

This is one of the most important video for a PHP Dev working on Windows environment. Thank you Ken for sharing this knowledge with us

abhishekkandari
Автор

I used to work with Wamp for like 5 years, recently change my laptop and start using Xampp instead. Worst mistake that I've ever done. Less than 2 months and mysql crashed this way, spend 2 hours until I found your video... thanks a lot, man! You just save me

Lextadz
Автор

Ken, you're a total star. I was completely stuck until your method fixed things. Thanks for posting!

foldingtravelguitar
Автор

Awesome information. Short and concise. Thanks

aqlcr
Автор

Three days banging my head and you solved the problem in less than three minutes... u R my hero, man! 😁

reginaldodoprado
Автор

The best part is replacing the folder and the data brought all the tables in phpmyadmin. Great job!

sirroteolaoye
Автор

This video really help me fixing my final term project. Thank you so much for this important video.

ktkoshka
Автор

Ken, thank you so much for the precise and comprehensive video.

goodwilljohn
Автор

Sir you have saved my life! i had the issue 2 hours before i had to take my final exam and this worked like a charm!

danyzuhj
Автор

Ken, you saved ! quick but very important tutorial Thanks for posting!

mosaddekh
Автор

It's working fine. I faced the similar issue and your solution was awesome.
Thank You

opensource
Автор

Hi Ken! You saved my study in PHP, i was the same problem and learn to fix this. Thanks!

FabioSouttodev
Автор

Thank you very much for this tutorial. It really helped as I was stuck with the same problem

GOPALS
Автор

Thanks, i had tried every solution available online. But only your method works. Thanks a lot.

Rohit-iecu
Автор

Lifesaver! Im almost but you make me happy again :') Thank youuu!

aynaarahmad
Автор

What should I do if I went and do all of that and it still give me the same error?

xenglee
Автор

You are amazing
this saved me the whole day especially when exams get soon

syrymkhakimzhan
Автор

Can i delete the data_old folder after xampp works?

ao
Автор

That's a great tutorial for dev, thanks a lot Ken

pushpendratomar
Автор

OMG WORKS
first time
without any extra issue
thank you man

Moonfox