Completely Uninstall OR Remove MySQL 8 from macOS [Step-by-Step]

preview_player
Показать описание
Sometimes, you may encounter errors while re-installing MySQL. And the best solution for that is, complete removal of MySQL from your macOS, and try again. This video tutorials shows you step-by-step and proper method to completely delete MySQL 8 installation from your mac computer. Though these steps are recorded on macOS 11 Big Sur. It would work on macOS 10 all versions. You can ask me question/doubts in comments section.

# Chapters #

0:00 Introduction
0:47 Export or Backup MySQL databases
04:18 Stop MySQL server instance
04:50 Uninstall MySQL 8 via application window
05:35 Remove or delete MySQL related directories via terminal
08:19 Restore or Import MySQL 8 databases in macOS
11:03 End message, ask questions, like & subscribe

Execute following commands one by one to completely remove MySQL from you macOS computer.

sudo rm -rf /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /usr/local/var/mysql
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo 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*

edit hostconfig file as follows

sudo nano /etc/hostconfig (if required, enter sudo user password)
If the file exists and has following line then remove the following line.
MYSQLCOM=-YES-

#MacOS #MySQL #Uninstall #Remove #Database #PnTutorials
Рекомендации по теме
Комментарии
Автор

could you please put the command lines in the description?

EbonicsAAVEArabicCreole
Автор

Does not work with MySQL 8 on MacOS 12.6. There is no MySQL tool in System Preferences.

michaelmcnally
join shbcf.ru