Skip to content

Instantly share code, notes, and snippets.

@handerson
Forked from davejlong/mysql client
Created March 27, 2012 16:52
Show Gist options
  • Save handerson/2217860 to your computer and use it in GitHub Desktop.
Save handerson/2217860 to your computer and use it in GitHub Desktop.
How to setup the MySQL client and MySQLDump client on Mac OS x from MySQL Workbench
#MySQL Client
ln -s /Applications/MySQLWorkbench.app/Contents/Resources/mysql /usr/bin/mysql
#MySQL Dump
ln -s /Applications/MySQLWorkbench.app/Contents/Resources/mysqldump /usr/bin/mysqldump
#How to fix the "Library not loaded: libmysqlclient.18.dylib (LoadError)" error
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
@steenzout
Copy link

# MySQL Workbench 6.2.3
sudo ln -s /Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump /usr/bin/mysqldump

@jvillariaza
Copy link

thank you..

@thepaski
Copy link

also can be found @ /Applications/MySQLWorkbench.app/Contents/MacOS

@ehsankhfr
Copy link

Thanks

@ryanooi
Copy link

ryanooi commented Nov 30, 2015

Thanks!

@totomz
Copy link

totomz commented Feb 5, 2018

Updated to MySQLWorkbench 6.3 and newer osx

#MySQL Client
ln -s /Applications/MySQLWorkbench.app/Contents/MacOS/mysql /usr/bin/mysql
#MySQL Dump
ln -s /Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump /usr/local/bin/mysqldump

@dieisonbeck
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment