homebrew mysql5.6_Homebrew 安装mysql

cmd:~dongjunjie$ brew search mysql

automysqlbackup mysql++ mysql-connector-c mysql-sandbox mysql-utilities mysql@5.6mysql mysql-cluster mysql-connector-c++ mysql-search-replace mysql@5.5mysqltuner

caskroom/cask/mysql-connector-python caskroom/cask/mysql-shell caskroom/cask/navicat-for-mysql

caskroom/cask/sqlpro-for-mysql

决定安装5.6cmd:~ dongjunjie$ brew install mysql@5.6Updating Homebrew...==>Auto-updated Homebrew!Updated1 tap (homebrew/core).==>New Formulae

grakn==>Updated Formulae

ammonite-repl conan git-town lablgtk mariadb@10.1notmuch paket sqlmap

ansible django-completion imake libgcrypt metricbeat npth rancher-cli terragrunt

aws-sdk-cppfilebeat jhipster libvirt mono ntopng re2

awscli freeradius-server kibana lmdb mtr packetbeat sourcery==>Downloading https://homebrew.bintray.com/bottles/mysql@5.6-5.6.36_1.sierra.bottle.tar.gz

########################################################################100.0%

==>Pouring mysql@5.6-5.6.36_1.sierra.bottle.tar.gz==>Using the sandbox==>/usr/local/Cellar/mysql@5.6/5.6.36_1/bin/mysql_install_db --verbose --user=dongjunjie --basedir=/usr/local/Cellar/mysql@5.6/5.6.36_1 --datadir=/usr/local/var/mysql --tmpdir=/t==>Caveats

A"/etc/my.cnf" from another install may 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 was not symlinked into /usr/local,

because this is an alternate version of another formula.

If you need to have this software firstinyour PATH run:echo 'export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"' >> ~/.bash_profile

For compilers tofindthis software you may need to set:

LDFLAGS:-L/usr/local/opt/mysql@5.6/lib

CPPFLAGS:-I/usr/local/opt/mysql@5.6/include

To have launchd start mysql@5.6 now and restart at login:

brew services start mysql@5.6Or,if you don't want/need a background service you can just run:

/usr/local/opt/mysql@5.6/bin/mysql.server start==>Summary

🍺/usr/local/Cellar/mysql@5.6/5.6.36_1: 346 files, 154.2MB

上面会告诉你的很清楚 ,如果现在启动并让其开机启动如下操作

To have launchd start mysql@5.6 now and restart at login:

brew services start mysql@5.6否则,如果不想做后段服务启动动可以这样

Or,if you don't want/need a background service you can just run:

/usr/local/opt/mysql@5.6/bin/mysql.server start

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值