How to uninstall MySQL on macOS

April 11, 2025
Asya Karapetyan
Written by
Asya Karapetyan
info
A content marketer with 10+ years of experience specializing in macOS, focused on creating guides for Mac cleanup and optimization.
A content marketer with 10+ years of experience specializing in macOS, focused on creating guides for Mac cleanup and optimization.
Vladyslav Zubkov
Approved by
Vladyslav Zubkov
info
The content has been reviewed and approved by our team member, an Apple Certified Support Professional, who provides technical support to Nektony’s users.
The content has been reviewed and approved by our team member, an Apple Certified Support Professional, who provides technical support to Nektony’s users.

For uninstalling MySQL from Mac completely it’s not enough to remove the app’s icon from the System Settings window. It is crucial to delete MySQL with all of its service files.

This article provides a step-by-step guide on how to remove MySQL from Mac correctly and entirely.

Contents:

  1. What is MySQL, and why remove it?
  2. How to uninstall MySQL from Mac manually.
  3. How to remove MySQL using App Cleaner & Uninstaller.
  4. FAQs

How to completely uninstall MySQL on Mac – Video Guide


What is MySQL, and why remove it?

MySQL for Mac is a software tool used for most popular programming languages, like PHP, Java, Perl, C, C ++, and others. In short, it is a database management system (DBMS), which allows you to connect to the database, run SQL queries and receive a response.

According to the 2024 Stack Overflow Developer Survey, MySQL remains one of the most popular databases among developers, ranking 3rd among the most used databases with 51.0% of professional developers reporting regular use. Despite the rise of newer technologies, MySQL continues to be a solid and widely adopted choice in many tech stacks.

However, there are a few reasons why you might want to remove MySQL from your system:
  • Developers may want to remove MySQL in order to start fresh with a clean configuration or upgrade to a newer version.
  • MySQL operates as a background service (daemon), which can consume significant memory and CPU resources, especially on older Mac computers. This may affect your system’s overall performance.
  • If you don’t use MySQL, then you should better uninstall it from your Mac operating system and don’t allow useless files to take up valuable space on your disk. From this article, you will learn two ways on how to uninstall MySQL from Mac.
  • You may face some issues with MySQL. In this case, try to reinstall MySQL — the problem should be solved.
From this article, you will learn two ways to uninstall MySQL from Mac.

Uninstalling MySQL from Mac manually

MySQL is a preference pane that can be found in the System Settings window. Please carefully follow each step in the guide below to remove all the support files of MySQL.
  1. Open System Settings.
  2. Scroll down, find and click the MySQL icon in the left panel.
  3. In the MySQL Instances tab, click the Uninstall button.
  4. MySQL in System Settings
  5. In the window that appears, mark the checkbox for Uninstall this preference panes and its support files.
  6. Click Ok.
  7. Provide your admin user password to confirm.
  8. Uninstalling MySQL

    Now you need to remove the MySQL database. We will show how to do this using the Terminal command line.

  9. Open Terminal from the Launchpad.
  10. Back up your data to text files. Copy and paste the following command and press Return:

    mysqldump

  11. Check the MySQL service and its processes that are working in the background. To close them, use the following command:

    ps -ax | grep mysql

  12. Type the command below and press Return.

    sudo rm /usr/local/mysql

  13. If required, enter your user password.
  14. Terminal window showing command to remove MySQL
  15. Remove MySQL files. Enter the commands below consistently. After each command you need to press Return.
    • sudo rm -rf /usr/local/var/mysql
    • sudo rm -rf /usr/local/mysql*
    • sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
    • sudo rm -rf /Library/StartupItems/MySQLCOM
    • sudo rm -rf /Library/PreferencePanes/My*
  16. Edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
  17. Remove MySQL preferences:
    • rm -rf ~/Library/PreferencePanes/My*
    • sudo rm -rf /Library/Receipts/mysql*
    • sudo rm -rf /Library/Receipts/MySQL*
    • sudo rm -rf /private/var/db/receipts/*mysql*
  18. Reboot your Mac for reliability.

Now MySQL should be uninstalled completely.

Using the Terminal commands is more for computer geeks, and some users prefer to avoid using it. Luckily, there is another way to uninstall the Mac MySQL server. We will show up how to do this with a few clicks with App Cleaner & Uninstaller’s help.


How to delete MySQL with App Cleaner & Uninstaller

App Cleaner & Uninstaller automatically detects all the support files that each application creates and stores on Mac. It allows you to remove applications entirely, and you don’t have to search for their support files anymore.

How to use App Cleaner & Uninstaller:
  1. Open the uninstaller.
  2. It will scan all the apps you have in the Applications folder.
  3. Find MySQL in the left section and select it.
  4. Click the Remove button.
  5. Confirm the deletion.
App Cleaner & uninstaller showing MySQL app and its service files

MySQL will be uninstalled from your Mac. By default, all files are removed into the Trash. So don’t forget to empty your bin to get rid of the application completely.

If you have already removed MySQL from the System Settings window, check your Mac for its remaining files. For this, in App Cleaner & Uninstaller, switch to the Remaining Files section. Here you can select and remove unneeded MySQL’s leftovers.

MySQL remaining files Note, if you want to uninstall any Preference Pane but don’t see this program in the Applications section, switch to the Extensions tab → Preferences Panes. Here you can remove the System Panes of MySQL. Extensions-MySQL preference pane As you can see, Mac’s uninstalling applications and extensions are done easily and safely with App Cleaner & Uninstaller. You can try it absolutely for free.

FAQs

How do I know if MySQL is installed on my Mac?

Where is MySQL installed on Mac?

How do I reinstall MySQL on Mac?

What happens to my databases if I uninstall MySQL?

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top