Homebrew installing MySQL

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.