How to uninstall MySQL workbench on Mac

November 9, 2023

Uninstalling MySQL Workbench on macOS is a straightforward process, but you need to ensure you remove all associated files and components. Here's a step-by-step guide for engineers who want to get things done efficiently.

Step 1: Quit MySQL Workbench

Ensure that MySQL Workbench is not currently running. You can do this by:

  1. Clicking on MySQL Workbench in the Dock (if it's open).
  2. Clicking MySQL Workbench in the menu bar.
  3. Selecting Quit MySQL Workbench.

Alternatively, use the shortcut Command + Q after focusing on the application.

Step 2: Drag MySQL Workbench to Trash

  1. Open Finder.
  2. Go to the Applications folder.
  3. Locate MySQL Workbench.
  4. Drag the MySQL Workbench app to the Trash, or right-click and choose Move to Trash.

Step 3: Remove Associated Files

MySQL Workbench might leave some configuration files on your system. For a clean uninstall, you should remove these files.

  1. Open Finder.
  2. In the menu bar, click on Go and then select Go to Folder... (or use the shortcut Shift + Command + G).
  3. Enter the following paths and remove associated MySQL Workbench files if they exist:
~/Library/Application Support/MySQL/Workbench ~/Library/Preferences/com.oracle.workbench.MySQLWorkbench.plist ~/Library/Caches/com.oracle.workbench.MySQLWorkbench ~/Library/Saved Application State/com.oracle.workbench.MySQLWorkbench.savedState

Note: The ~ symbol represents your home directory.

Step 4: Empty the Trash

To permanently delete MySQL Workbench and its associated files:

  1. Right-click on the Trash icon in the Dock.
  2. Select Empty Trash.

Caution: This action will delete all the items in your Trash, not just MySQL Workbench. Make sure you have verified the contents of your Trash before emptying it.

Optional Step: Uninstall MySQL Server (if needed)

If you also want to uninstall MySQL server:

  1. Open Terminal (you can find it under Applications > Utilities).
  2. Execute the following command:
sudo rm -rf /usr/local/mysql

Then, remove the MySQL user and group by executing:

sudo dscl . -delete /Users/mysql sudo dscl . -delete /Groups/mysql

Remove MySQL preferences:

sudo rm /Library/Preferences/com.mysql.*

Conclusion

That's it! You've successfully uninstalled MySQL Workbench from your macOS. Remember, always back up important data before uninstalling any software, and be cautious when using the rm command or emptying the Trash to avoid unintentional data loss.

Basedash is the best MySQL admin panel

Basedash is the best MySQL admin panel

Basedash is the best MySQL admin panel

If you're building with MySQL, you need Basedash. It gives you an instantly generated admin panel to understand, query, build dashboards, edit, and share access to your data.

If you're building with MySQL, you need Basedash. It gives you an instantly generated admin panel to understand, query, build dashboards, edit, and share access to your data.

If you're building with MySQL, you need Basedash. It gives you an instantly generated admin panel to understand, query, build dashboards, edit, and share access to your data.

Dashboards and charts

Effortlessly make charts and create a space for your team to work together towards shared goals and metrics.

User CRM

SQL composer with AI

Admin panel

Screenshot of a users table in a database. The interface is very data-dense with information.