Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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
You can’t perform that action at this time.