Install software on Mac, no doubt install a brew is a good choice, about brew is what, how to install recommendations to brew official website to view,
Attached address: Brew website also has a blog post http://www.cnblogs.com/xd502djj/p/6923690.html
After the installation is complete, it is convenient to install additional software.
First search the next
cmd:~ dongjunjie$ Brew Search MySQL
Automysqlbackup mysql++ mysql-connector-c Mysql-sandbox my sql-utilities [email protected]
MySQL mysql-cluster mysql-connector-c++ mysql-search-replace [E Mail protected] Mysqltuner
Caskroom/cask/mysql-connector-python Caskroom/cask/mysql-shell CA Skroom/cask/navicat-for-mysql
Caskroom/cask/sqlpro-for-mysql
Decide to install 5.6
cmd:~ dongjunjie$ Brew Install [email protected]
Updating Homebrew ...
==> auto-updated homebrew!
Updated 1 Tap (Homebrew/core).
==> New formulae
Grakn
==> Updated formulae
Ammonite-repl Conan git-town LABLGTK [email protected] Notmuch Paket Sqlmap
Ansible django-completion imake libgcrypt metricbeat npth RANCHER-CLI Terragrunt
Aws-sdk-cpp filebeat jhipster libvirt Mono ntopng Re2
Awscli freeradius-server Kibana lmdb mtr packetbeat Sourcery
==> downloading Https://homebrew.bintray.com/bottles/[email protected]_1.sierra.bottle.tar.gz
######################################################################## 100%
==> Pouring [email protected]_1.sierra.bottle.tar.gz
==> Using the sandbox
==> /usr/local/cellar/[email protected]/5.6.36_1/bin/mysql_install_db--verbose--user=dongjunjie-- Basedir=/usr/local/cellar/[email protected]/5.6.36_1--datadir=/usr/local/var/mysql--tmpdir=/t
==> Caveats
A "/etc/my.cnf" from another install could interfere with a homebrew-built
Server starting up correctly.
MySQL is configured to only allow connections from localhost by default
To connect:
Mysql-uroot
This formula is keg-only, which means it wasn't symlinked into/usr/local,
Because this was an alternate version of another formula.
If you need to the software first in your PATH run:
echo ' Export path= '/usr/local/opt/[email protected]/bin: $PATH "' >> ~/.bash_profile
For compilers-to-find this software-need to set:
Ldflags:-l/usr/local/opt/[email protected]/lib
Cppflags:-i/usr/local/opt/[email protected]/include
To has launchd start [email protected] Now and restart at login:
Brew services start [email protected]
Or, if you don ' t want/need a background service can just run:
/usr/local/opt/[email protected]/bin/mysql.server Start
==> Summary
?? /usr/local/cellar/[email protected]/5.6.36_1:346 files, 154.2MB
The above will tell you very clearly, if you start now and let it boot up the following actions
To has launchd start [email protected] Now and restart at login:
Brew services start [email protected]
Otherwise, if you don't want to do a post-service startup, you can.
Or, if you don ' t want/need a background service can just run:
/usr/local/opt/[email protected]/bin/mysql.server Start
Homebrew installing MySQL