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

Поделиться
HTML-код
  • Опубликовано: 25 июл 2024
  • MySQL Uninstall: Learn how to completely uninstall or remove MySQL 8 from MacOS 11 Big Sur operating system. Once MySQL uninstall is complete, and you want to install it again, checkout my another video tutorial where I've covered MySQL 8 installation on macOS step-by-step. Here is the link: • Install MySQL 8.0.28 D...
    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*
    sudo rm -rf /var/db/receipts/com.mysql.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

Комментарии • 8

  • @EbonicsAAVEArabicCreole
    @EbonicsAAVEArabicCreole Год назад +1

    could you please put the command lines in the description?

    • @PnTutorialsbyPradnyankurNikam
      @PnTutorialsbyPradnyankurNikam  Год назад

      Thanks for the suggestion. Yes! I just added the respected terminal commands.

    • @EbonicsAAVEArabicCreole
      @EbonicsAAVEArabicCreole Год назад +1

      @@PnTutorialsbyPradnyankurNikam thank you! I ended up doing it manually and I was able to reinstall MYSQL brand new thanks to your tutorial. But it was definitely a scary moment making sure I was typing everything correctly! The copy and paste will help others not so comfortable with a terminal.

    • @PnTutorialsbyPradnyankurNikam
      @PnTutorialsbyPradnyankurNikam  Год назад

      Thanks for sharing your experience. Yes! I agree, those who have not experience with terminal would have difficulty typing & understanding the command. Ready to go copy paste command would be helpful for such users. I already have added the commands. I hope it helps other users. Thanks again for your feedback & suggestion, I appreciate it. 😊🙏

  • @michaelmcnally1242
    @michaelmcnally1242 Год назад

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

    • @PnTutorialsbyPradnyankurNikam
      @PnTutorialsbyPradnyankurNikam  Год назад

      Hi Michael,
      Did you delete the folders I mentioned in the tutorial? If so, can you confirm, if MySQL still exists on your system using,
      mysql --version

    • @michaelmcnally1242
      @michaelmcnally1242 Год назад +1

      @@PnTutorialsbyPradnyankurNikam Yes, eventually deleting all the folders involved with MySQL worked, and now I have a working installation. My main point was that on MacOS Monterey (12), at least for me, there never is a MySQL "tool" in System Preferences.

    • @PnTutorialsbyPradnyankurNikam
      @PnTutorialsbyPradnyankurNikam  Год назад

      Hi Michael, Since MySQL recently have released new version of installer, they might not have included support for MacOS Monterey. They always keep updating new versions and fix bugs. Hopefully in next version they will fix the issue or include support for MacOS Monterey. I'll install MacOS Monterey and test by myself. Thanks for providing the information.