

Follow the installation wizard and choose the components that you want to install. Install the new version of XAMPP that you downloaded in step 1. This is usually located in the "C:\xampp" directory. You can do this by going to the Control Panel, selecting "Programs and Features", finding XAMPP in the list of installed programs, and clicking on "Uninstall".ĭelete the XAMPP folder from your computer. Uninstall the current version of XAMPP from your computer. Here are the steps to do it:ĭownload the latest version of XAMPP from the official website and save it to your computer. If you are facing the "MySQL shutdown unexpectedly" error in XAMPP, one of the solutions is to reinstall XAMPP. Method 4: Reinstall XAMPP How to fix XAMPP - Error: MySQL shutdown unexpectedly with Reinstall XAMPP Here is an example code to find the PID of the service that is using the same port as MySQL:īy adding these lines to the my.ini configuration file, you may be able to fix the "MySQL shutdown unexpectedly" error in XAMPP.

Here are some of the methods to fix the "MySQL shutdown unexpectedly" error in XAMPP: Method 1: Check for Conflicting Services If you are facing this error, don't worry, it can be easily resolved. This error usually occurs due to several reasons such as a crash of the MySQL server, conflicting services on the same port, or due to incorrect configuration of the MySQL server. The error "MySQL shutdown unexpectedly" is a common issue faced by XAMPP users while starting the MySQL service.
