3

I installed this version of mysql with the script here, but I don't know how to remove it. It isn't in the applications folder. It's here:

enter image description here

I wish if someone could tell me how to completely remove it. Thanks!

  • How did you install it? Drag the App or from a .pkg file? – At0mic Oct 13 '15 at 2:08
  • @IronCraftMan I installed with this command: bash <(curl -Ls http://git.io/eUx7rg) from here link – Joseph Oct 13 '15 at 2:11
  • going to the GitHub link from the article, it appears as if there's not way to uninstall it. I would recommend staying away from the types of software that can't be removed. – At0mic Oct 13 '15 at 2:13
  • @IronCraftMan Oh, I'm new in OS X and didn't know that. – Joseph Oct 13 '15 at 2:14
  • also, it appears as if you installed from a .pkg. I can't read whatever language your system is in, but "Instalacions" is fairly close to Installations. Here's an app that will remove the file(s): UninstallPKG. If you don't want to pay, this is a link to manually uninstalling it: article – At0mic Oct 13 '15 at 2:16
4

To uninstall all files/packages installed by the shell script simply undo all commands executed in the script logged in with an admin account:

  1. Open System Preferences -> MySQL and stop the service if it's running
  2. Open the folder /Applications and drag SequelPro - if it was installed - to your trash.
  3. Open Terminal and enter sudo rm -R /usr/local/mysql-5.6.26-osx10.8-x86_64 to remove the mysql folder
  4. Enter sudo rm /usr/local/mysql to remove the soft link
  5. Enter cd /Library/LaunchDaemons && ls
  6. Search for the *.mysql.plist (the launch daemon plist of mysql) and remove it with sudo rm com.oracle.oss.mysql.mysqld.plist.
  7. Remove the my.cnf file with sudo rm /etc/my.cnf
  8. Remove the mysql socket soft link and the superior folder with sudo rm -R /var/mysql
  9. Remove all installed mysql package receipts with sudo pkgutil --forget package-id.
    Example: sudo pkgutil --forget com.mysql.launchd The name of the other two packages are com.mysql.mysql and com.mysql.prefpane
  10. Remove the file MySQL.prefPane in /Library/PreferencePanes/
  11. Finally cd to /usr/local/bin and check the existence as well as the creation/modification date of the file pidof. Remove it if both dates match with the installation date of mysql.

Addendum

To remove the MySQL installation from System Info -> Software -> Installations (which is a "cosmetic problem" only) remove the MySQL dict entry:

<dict>
    <key>date</key>
    <date>2015-10-13T15:06:35Z</date>
    <key>displayName</key>
    <string>MySQL 5.6.26-community</string>
    <key>displayVersion</key>
    <string></string>
    <key>packageIdentifiers</key>
    <array>
        <string>com.mysql.mysql</string>
        <string>com.mysql.prefpane</string>
        <string>com.mysql.launchd</string>
    </array>
    <key>processName</key>
    <string>installer</string>
</dict>

by editing the file InstallHistory.plist in /Library/Receipts/ with sudo nano /Library/Receipts/InstallHistory.plist or with TextWrangler.

  • For sudo to work you need to have administrator rights. – CousinCocaine Oct 13 '15 at 9:40
  • @klanomath Hi, thanks for answering. I follow all your steps. But it continues appearing in the System Preferences > Software > Installations I found this file InstallHistory.plist <dict> <key>date</key> <date>2015-10-12T23:24:29Z</date> <key>displayName</key> <string>MySQL 5.6.26-community</string> <key>displayVersion</key> <string></string> <key>packageIdentifiers</key> <array> <string>com.mysql.mysql</string> <string>com.mysql.prefpane</string> <string>com.mysql.launchd</string> </array> <key>processName</key> <string>installer</string> </dict> – Joseph Oct 13 '15 at 14:47
  • @klanomath Could it be that in System Preferences > Software > Installations appears that mysql but as a old installation just to keep a history, or it indicates that it remains in the system. – Joseph Oct 13 '15 at 14:52
  • @klanomath In step 9 I got this output from the terminal No receipt for 'com.mysql.prefpane' found at '/'. – Joseph Oct 13 '15 at 15:24
  • @Joseph That's ok. You already deleted them manually. I modified my answer in step 9 expecting that it also changes the installHistory file but it doesn't. Instead you have to do it manually: see the addendum – klanomath Oct 13 '15 at 15:26
0

All the paths to where mysql is installed is in the script.

Under /usr/local/mysql the script has installed mysql - so it should just be deleting this mysql folder, that would remove it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .