[Fixed] MySQL Database not running XAMPP 7.2.31 macOS

After installation of XAMPP on macOS when you try to start the MySQL Database using the Application Manager, you might face issues with running it. I spent hours to change the port and did everything. But finally, the following steps helped me fix the issue.

Step 1

Go to the Application > Utilities and Open the Terminal. Once you open the terminal, paste or type the following command to close if MySQL is already running. Enter the user account password if it asks for your macOS user.

sudo killall mysqld sudo

Step 2

Once you kill the MySQL process,  start it again using the following command.

/Applications/XAMPP/xamppfiles/bin/mysql.server start

If it doesn’t work, change the permission of the file /Applications/XAMPP/xamppfiles/etc/my.cnf from ‘read-only’ to ‘everyone’ and then start the MySQL from XAMPP Application Manager.

You can also set the Port to  3307 by clicking on the Configure button in the XAMPP Manager.

Conclusion

XAMPP Manager is easy to use and configure. But sometimes you might face issues with starting apache and MySQL due to configuration or conflict of the port. Changing the port and restarting the services always help in fixing issues with XAMPP application manager. If you are still struggling with starting any of the XAMPP services, leave a comment below. I will get back to you as soon as possible and help you in running the services.

Abhilash Sahoo

Abhilash Sahoo, with 14 years of experience, is a Certified Joomla and WordPress Expert and the Founder & CEO of Infyways Solutions, specializing in innovative web development solutions.

Share
Published by
Abhilash Sahoo

Recent Posts

HubSpot vs WordPress: A Comparison Overview of Popular CMSs.

HubSpot vs WordPress? What best? Indeed, for more than ten years, WordPress has been the…

3 months ago

Boost Your Website’s Performance with Expert WordPress Speed Optimization Services

WordPress Speed Optimization Services for Website maintenance is a full-time job. Apart from introducing new…

3 months ago

Fixing There Has Been A Critical Error On This Website WordPress

Nothing is more terrifying than when your WordPress website is going down, especially when you…

4 months ago

WordPress vs Ghost: Exploring the Differences!

WordPress vs Ghost, who wins actually? Despite its current position as the world's leading content…

4 months ago

Top WordPress Security Services Providers in 2023

The security and safety of any website are essential for its health and well-being. The…

4 months ago

Top 12 WordPress Website Management Tools for 2023

Let's explore the definition of WordPress Website Management Tools before moving on to the finest…

6 months ago