
WordPress requires a web server software (Apache), PHP and MySQL to run.

Additionally, WordPress is used by industry leaders too. If you want to test WordPress, experiment with plugins, or themes software like XAMPP or WAMP can help you to create localhost on your PC. Many people are kickstarting WordPress blogs. Nowadays, WordPress has become one of the most popular and powerful Content Management Systems in the world.

You don’t need to know them to have a fully working localhost on your PC. Don’t be afraid if you do not know any of them. XAMPP can help you to setup localhost on your PC with the help of PHP, MySQL, and Apache. Make sure that you select the same components that you had in the previous version of XAMPP.Īfter the installation is complete, start XAMPP and check if the "MySQL shutdown unexpectedly" error is resolved.You can easily install WordPress on XAMPP. 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.


The error "MySQL shutdown unexpectedly" is a common issue faced by XAMPP users while starting the MySQL service.
