Uninstalling MySQL

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US
  1. Ensure that the database backup performed earlier has completed successfully and that you are able to locate the database backup file.
  2. Open System Preferences.
  3. Click MySQL.

    The status of MySQL is displayed.

  4. If MySQL is running, click Stop MySQL.
    Important:

    Do not continue with the steps in this workflow until the MySQL pane in System Preferences reports that MySQL is stopped.

  5. Open Terminal.
  6. Remove all my MySQL files by executing the following commands:
    sudo rm -rf /usr/local/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 /var/db/receipts/com.mysql.
    sudo rm -rf /var/mysql
    sudo rm -f /etc/my.cnf
    sudo rm -f /usr/bin/mysql
    sudo rm -r /Library/LaunchDaemons/mysql
    sudo rm -r /Library/LaunchAgents/mysql
    sudo rm -r /System/Library/LaunchDaemons/mysql
    sudo rm -r /System/Library/LaunchAgents/mysql
    Note:

    Some of the above commands may return "No such file or directory", depending on which directories are present in your particular Jamf Pro server. If the file path has been typed correctly, you may ignore "No such file or directory" errors and continue with the workflow.

  7. Restart the server.