本篇記錄在Mac用Homebrew安裝MySQL Workbench資料庫管理工具。
HomeBrew是Mac的套件管理工具,可以用來幫你快速的安裝軟體及程式。
範例環境:
- macOS Catalina, version 10,15.5
- Homebrew 2.4.6
在終端機terminal輸入brew cask install mysqlworkbench
即可安裝。Homebrew Cask是Homebrew的擴充,用來安裝macOS的圖形化介面(GUI)軟體。
$ brew cask install mysqlworkbench
Updating Homebrew...
...
==> Downloading https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-8.0.21-macos-x86_64.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'mysqlworkbench'.
==> Installing Cask mysqlworkbench
==> Moving App 'MySQLWorkbench.app' to '/Applications/MySQLWorkbench.app'.
🍺 mysqlworkbench was successfully installed!
安裝完後即可在Mac的Applications
下找到MySQLWorkbench.app
。
開啟時如果跳出有安全性問題無法開啟時,請到系統偏好(System Preferences)的安全隱私(Security & Privacy)的[General]標籤下設定允許開啟。
輸入brew cask info mysqlworkbench
檢視安裝資訊。
$ brew cask info mysqlworkbench
mysqlworkbench: 8.0.21
https://www.mysql.com/products/workbench/
/usr/local/Caskroom/mysqlworkbench/8.0.21 (123.1KB)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/mysqlworkbench.rb
==> Name
MySQL Workbench
==> Description
None
==> Artifacts
MySQLWorkbench.app (App)
==> Analytics
install: 1,501 (30 days), 4,762 (90 days), 19,678 (365 days)
brew cask install mysqlworkbench
回覆刪除改成
brew install --cask mysqlworkbench