Skip to content

Instantly share code, notes, and snippets.

@jgwill
Created October 17, 2018 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwill/93a13d5e63aaa7bed7bba314c1d37f2a to your computer and use it in GitHub Desktop.
Save jgwill/93a13d5e63aaa7bed7bba314c1d37f2a to your computer and use it in GitHub Desktop.
@stcgoal install mysql client on Mac OS x and Access thru command line
#!/bin/bash
# By Guillaume Descoteaux-Isabelle
# Version 0.0.1.1810171102
#@stcgoal install mysql client on Mac OS x and Access thru command line
#1.
#@v Download and Install Workbench
cd ; mkdir tmp_download_workbench ; cd tmp_download_workbench
curl https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-8.0.12-macos-x86_64.dmg -O
#@NOTE You might want to
#1.1 Optianally delete install image
cd ; rm -rf tmp_download_workbench
#2.
#Manual Action
##@a MANUALLY Install "Workbench" from tmp_download_workbench
#3.
#@a Link BASH Resource file
##.bashrc setup
cd
echo export PATH=\$PATH:/Applications/MySQLWorkbench.app/Contents/MacOS >> .bashrc
#VOILA
##@cr You should be able to run such command like
#4.
mysql -uroot -pPassw0rd99 -h 127.0.0.1 -P 3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment