How to uninstall MySQL on macOS
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.
- What is MySQL, and why remove it?
- How to uninstall MySQL from Mac manually.
- How to uninstall MySQL from Mac using App Cleaner & Uninstaller.
How to completely uninstall MySQL on Mac – Video Guide
Important notes and the methodology used in this article
- If you want to uninstall applications from Mac completely, you need to find and remove all of their support files.
- By default, applications store their service file in the Library folder. However, some applications might spread their hidden files all over your disk.
- We will explain how to find applications’ service files from Mac manually and automatically.
- You should be careful when manually removing applications’ support files from Library. Deleting important macOS support files may damage your system.
- No matter which way you use to uninstall applications from your Mac, you can check your disk for their remaining files with App Cleaner & Uninstaller from Nektony.
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.
You may face some issues with MySQL. In this case, try to reinstall MySQL. The problem should be solved.
If you don’t use MySQL, then you should better uninstall it from your Mac oprating 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.
Uninstalling MySQL from Mac manually
MySQL is a preference pane that can be found in the System Preferences window. Please, carefully follow each step from the guide below to get rid of all of the support files of MySQL.
Uninstallation steps for MySQL:
- Open System Preferences. For this, go to the Apple menu and select System Preferences. You can also run it from the Launchpad.
- Find the MySQL icon and click on it.
- In the MySQL Instances tab, click the Uninstall button.
Now you need to remove the MySQL database. We will show how to do this using the Terminal command line. - Open the Terminal from the Launchpad.
- Back up your data to text files with the following command: mysqldump
*After each command, you have to press Enter. - Check the MySQL service and its processes that are working in the background. For this, use the following command:
ps -ax | grep mysql
Close all the running MySQL server processes. - Type the command below and press Enter.
sudo rm /usr/local/mysql
If required, enter your user password.
- Remove MySQL files. Enter the commands below consistently. After each command you need to press Enter.
- 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*
- Edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
- 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*
- 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 of 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.
Here is how to uninstall MySQL with App Cleaner & uninstaller:
- Open App Cleaner & uninstaller. It will scan all the apps you have in the Applications folder.
- Find the MySQL in the left section and select it.
- Click the Remove button.
- Confirm the deletion.

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 Preferences 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.
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.
As you can see, Mac’s uninstalling applications and extensions are done easily and safly with App Cleaner & Uninstaller. You can try it absolutely for free.
App Cleaner & Uninstaller Uninstall any Mac application in 2 minutes
Update v. 8.2.3 Sep 29, 2023
Как эффективно удалить MySQL на Mac

Специалист по написанию технических текстов, который создает различные типы статей, от обзоров до практических статей для Mac.
Возможно, вы захотите переустановить MySQL на своем Mac или даже получить другую версию, какой бы ни была причина, вам нужно удалить MySQL. Есть несколько шагов, которые необходимо предпринять, чтобы удалить MySQL на Mac. Удаление приложения с Mac кажется немного пугающим для людей, которые не слишком разбираются в технологиях или имеют большой опыт работы с Mac. Однако, если вы будете следовать этой статье с инструкциями по удалению MySQL на Mac, у вас не должно возникнуть особых проблем с удалением MySQL с вашего Mac.
СОВЕТЫ:
- Как удалить Python на Mac безопасно и полностью
- Как полностью удалить Homebrew на Mac

Самый быстрый и простой способ удалить MySQL на Mac
Как удалить MySQL на Mac? Чтобы начать с ваших вариантов, лучший вариант — использовать PowerMyMac чтобы удалить MySQL. Это упростит процесс всего несколькими щелчками мыши.
Также приятно отметить, что PowerMyMac — отличный инструмент, который поможет вам поддерживать ваш Mac, и он был специально разработан для того, чтобы ваш Mac работал правильно и безупречно. Теперь, чтобы правильно удалить приложения (в данном случае MySQL), выполните следующие действия, чтобы сделать это легко и безболезненно:
- Загрузите и установите PowerMyMac. (Щелкните правой кнопкой мыши файл PKG и запустите процесс установки.)
- Откройте программу, и вы сразу увидите текущее состояние вашего Mac.
- На главной странице вы увидите несколько параметров, которые могут поддерживать работоспособность вашего Mac. А пока выберите Деинсталлятор.
- Сканировать ваш Mac, чтобы проверить все приложения на вашем Mac.
- После отображения списка найдите MySQL среди результатов.
- Выберите MySQL, а также несколько связанных с ним файлов.
- Нажмите Чистка кнопку, чтобы начать удаление MySQL. Когда все закончится, MySQL больше не будет на вашем Mac.

PowerMyMac сделал довольно сложный процесс очень простым и эффективным, его могут использовать ветераны и люди, которые не слишком разбираются в использовании Mac.
Удаление MySQL с Mac вручную
MySQL немного уникален, чтобы успешно удалить и, возможно, переустановить MySQL вам нужно будет открыть терминал, чтобы сначала завершить процесс удаления. В отличие от других программ, где вы можете просто перетащить программу в корзину и удалить ее, MySQL так не работает. Кстати, при удалении других программ с помощью метода перетаскивания также остается много файлов на Mac, что занимает много места, и вы определенно не хотите этого в долгосрочной перспективе.
Чтобы удалить MySQL, вам нужно будет открыть терминал, чтобы полностью удалить его с вашего Mac. Выполните следующие действия, чтобы вручную удалить MySQL на Mac:
Шаг 2. Введите команду sudo rm /usr/local/mysql , может потребоваться ваш пароль администратора
Шаг 3. Введите эти команды после предыдущей:
- sudo rm -rf /usr/local/var/mysql
- sudo rm -rf /usr/local/mysql*
- sudo rm -rf /Library/StartupItems/MySQLCOM
- sudo rm -rf /Library/PreferencePanes/My*
Шаг 4. Введите последние несколько команд:
- sudo rm -rf /Library/Receipts/mysql*
- sudo rm -rf /Library/Receipts/MySQL*
- sudo rm -rf /private/var/db/receipts/*mysql*
Это должно почти завершить все, что вам нужно сделать в Терминале, чтобы удалить MySQL. Для тех, кто не слишком комфортно использует Терминал, а это довольно много людей, это может показаться слишком высоким и слишком сложным препятствием, но, к сожалению, это один из немногих способов вручную удалить MySQL на Mac. без использования деинсталлятора, такого как PowerMyMac.

Окончательный вывод
Теперь, когда вам доступны два метода удаления MySQL, вы можете принять обоснованное решение о том, как вы хотите удалить MySQL на Mac. Ручной метод рекомендуется для тех, кто знаком с терминалом и привык к вводу команд.
. PowerMyMacОднако он рекомендуется всем, так как в целом это довольно простой метод. Независимо от вашего выбора, мы надеемся, что этот пост поможет вам полностью удалить нежелательное приложение и освободить гораздо больше места.
Рейтинг: 4.4 / 5 (на основе 94 рейтинги)
vitorbritto / rm_mysql.md
Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Remove MySQL completely from Mac OSX
Remove MySQL completely
- Open the Terminal
- Use mysqldump to backup your databases
- Check for MySQL processes with: ps -ax | grep mysql
- Stop and kill any MySQL processes
- Analyze MySQL on HomeBrew:
brew remove mysql brew cleanup
sudo rm /usr/local/mysql 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*
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
# Edit this file: /etc/hostconfig # Remove the line MYSQLCOM=-YES-
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*
Как удалить и нормально установить mysql на Mac os?

Уже который день парюсь с установкой mysql, вроде поставил,а подключиться к БД не могу, да удалить уже тоже не могу)
Пробовал по этому гайду,сразу же встал на первом пункте,потому что надо удалить строку, но у меня и так пустой файл.И в меню mysql кнопка стоп не срабатывает.
- Вопрос задан более трёх лет назад
- 504 просмотра
2 комментария
Оценить 2 комментария
