June 4, 2025

How to uninstall MySQL on macOS

Asya Karapetyan
Written by
A content marketer with 10+ years of experience specializing in macOS, focused on creating guides for Mac cleanup and optimization.

Asya Karapetyan

Vladyslav Zubkov
Approved by
The content has been reviewed and approved by our team member, an Apple Certified Support Professional, who provides technical support to Nektony’s users.

Vladyslav Zubkov

Share

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.

Video Guide: How to completely uninstall MySQL on Mac

1:20

youtube button

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. MySQL in System Settings
  4. In the window that appears, mark the checkbox for Uninstall this preference panes and its support files.
  5. Click Ok.
  6. Provide your admin user password to confirm. Uninstalling MySQL

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

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

    Copy

  9. Check the MySQL service and its processes that are working in the background. To close them, use the following command:
    ps -ax | grep mysql

    Copy

  10. Type the command below and press Return.
    sudo rm /usr/local/mysql

    Copy

  11. If required, enter your user password. Terminal window showing command to remove MySQL
  12. Remove MySQL files. Enter the commands below consistently. After each command you need to press Return.
    • sudo rm -rf /usr/local/var/mysql

      Copy

    • sudo rm -rf /usr/local/mysql*

      Copy

    • sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

      Copy

    • sudo rm -rf /Library/StartupItems/MySQLCOM

      Copy

    • sudo rm -rf /Library/PreferencePanes/My*

      Copy

  13. Edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
  14. Remove MySQL preferences:
    • rm -rf ~/Library/PreferencePanes/My*<

      Copy

    • sudo rm -rf /Library/Receipts/mysql*

      Copy

    • sudo rm -rf /Library/Receipts/MySQL*

      Copy

    • sudo rm -rf /private/var/db/receipts/*mysql*

      Copy

  15. 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.

Frequently asked questions

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

One way to check if MySQL is installed on your Mac is to use the Terminal application:

  1. Open Terminal.
  2. Type the following command and press Enter:
    mysqladmin version

    Copy

  3. This command will show you information about the MySQL server, such as the version number, the uptime, and the port number.
  4. If you see an error message like "command not found" or "can't connect to local MySQL server, " it means MySQL is not installed on your Mac.

Where is MySQL installed on Mac?

If you have installed MySQL on your Mac using the official installer package, the MySQL files are in the
/usr/local/mysql

Copy

directory by default.

How do I reinstall MySQL on Mac?

To reinstall MySQL on Mac, you need first to uninstall the existing version of MySQL. You can use App Cleaner & Uninstaller to remove MySQL completely and quickly. Then go to the MySQL official website and download the latest version of MySQL.

What happens to my databases if I uninstall MySQL?

When you uninstall MySQL, the databases stored on your system may be deleted unless you specifically back them up before removal. To avoid data loss, it's essential to back up your databases by exporting them using the mysqldump command or a MySQL management tool before uninstalling MySQL. If you reinstall MySQL later, you can restore your databases from the backup.

Scroll to Top