在mac上安装软件,无疑安装一个brew是个很好的选择,关于brew是什么,怎么安装建议去brew官网查看,

附上地址:brew官网  还有一篇博文 http://www.cnblogs.com/xd502djj/p/6923690.html

安装完成之后,安装其他的软件就很方便了。

先搜索下

cmd:~ dongjunjie$ brew search mysql

automysqlbackup               mysql++                       mysql-connector-c             mysql-sandbox                 mysql-utilities               mysql@5.6

mysql                         mysql-cluster                 mysql-connector-c++           mysql-search-replace          mysql@5.5                     mysqltuner

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

caskroom/cask/sqlpro-for-mysql 

决定安装5. 

cmd:~ dongjunjie$ brew install mysql@5.6

Updating Homebrew...

==>Auto-updated Homebrew!

Updated  tap (homebrew/core).

==>New Formulae

grakn

==>Updated Formulae

ammonite-repl         conan                 git-town              lablgtk               mariadb@10.1          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/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 first in your PATH run:

  echo 'export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"' >> ~/.bash_profile

For compilers to find this 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.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

==>Summary

												

Homebrew 安装mysql的更多相关文章

  1. mac系统homebrew安装mysql

    homebrew 安装 mysql homebrew 是 macOS 缺失的软件包管理器,譬如可以下载 mysql.redis.wget 等等.操作系统:macOS High Sierra Versi ...

  2. Homebrew 安装 MySQL

    安装 Homebrew brew doctor 确认 brew 在正常工作 brew update 更新包 brew install mysql 安装 MySQL ​ ==> Downloadi ...

  3. mac 使用homebrew 安装mysql

    1. 安装homebrew ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" brew update ...

  4. Mac下 homebrew 安装mysql

    操作步骤 安装homebrew brew install mysql 安装mysql 安装完成之后,可以运行命令启动mysql服务 mysql.server start 然后输入命令设置密码 mysq ...

  5. Mac通过homebrew 安装mysql

    来源:http://timtang.me/blog/2011/12/07/mac-homebrew-mysql/ 使用MBP有一年了,开始想在工作中使用mac由于各种不习惯最终失败,导致自己使用了一年 ...

  6. 使用Homebrew安装MySQL

    安装命令: brew install mysql 安装完成之后,启动mysql: mysql.server start 发现无此命令: command not found 首先,检查是否是安装了.重新 ...

  7. Mysql学习(四)之通过homebrew安装mysql后,为什么在系统偏好设置里没有mysql

    原因 用brew install packagename是用来安装命令行工具的,一般不可能影响到图形界面. mysql官方文档是通过dmg文件安装的: The MySQL Installation P ...

  8. Mysql学习(二)之通过homebrew安装mysql后,为什么在系统偏好设置里没有mysql

    原因 用brew install packagename是用来安装命令行工具的,一般不可能影响到图形界面. mysql官方文档是通过dmg文件安装的: The MySQL Installation P ...

  9. Mac 命令行安装mysql homebrew 安装mysql后,如何配置mysql

    非常好 强力推荐 这个是我最新并且一直推崇的方法:1.安装:sunyichaodeMacBook-Pro:~ sunyichao$ brew install mysql2.开启mysql:mysql. ...

随机推荐

  1. Docker4之Stack

    Make sure you have published the friendlyhello image you created by pushing it to a registry. We’ll ...

  2. Async、Await

    Async.Await:net4.x新增的异步编程方式: 目的:为了简化异步程序编写 Async方式, 使用Async标记Async1为异步方法, 用Await标记GetRequestStreamAs ...

  3. 3、lvs调度方法详解

    3.lvs类型和调度方法详解    http://www.178linux.com/13570 集群:将多台主机组织起来满足某一特定需求: 集群类型: LB:Load Balancing, 负载均衡集 ...

  4. git服务器搭建全程

    为了后续安装能正常进行,我们先来安装一些相关依赖库和编译工具 [root@VM_95_113_centos ~]# yum install curl-devel expat-devel gettext ...

  5. Jmeter工具

    开源,纯java,用于HTTP协议性能测试,接口协议测试工具,自动化测试工具 功能测试角度: 1.支持多种不同类型的协议.接口协议有多种 2.可以全面支持HTTP协议(后台交互) 3.其他非直接支持的 ...

  6. SQL 中常用的功能函数,自定义的功能行数

    在SQL Server指定的数据库中,有Programmability目录,在这个目录下,有存储过程,有功能函数. set ANSI_NULLS ON set QUOTED_IDENTIFIER ON ...

  7. Oracle(字符函数)

    单行函数语法: 语法:funcation_name(列 | 表达式[, 参数1, 参数2]) 单行函数主要分为以下几种: 字符函数:接收数据返回具体的字符信息 数值函数:对数字进行处理,例如:四舍五入 ...

  8. 本地Windows上安装 MySQL数据库

    1.首先下载mysql安装文件,下载地址:https://dev.mysql.com/downloads/mysql/ 2.将下载下来的压缩包解压到本地一个文件夹中 3.在文件根目录下新增my.ini ...

  9. SpringBoot之profile的使用

    Profile配置是针对不同的环境提供不同的配置支持,比如,在开发环境的配置和测试环境下的配置不同,那么就可以使用Profile配置来实现该要求. 在你的src/main/resources下建立相应 ...

  10. Android JNI 传递对象

    JNI初步入门后,在传递数据的时候,遇到一个需求:有多个数据需要在Java与C代码之间进行传递.如果都做为函数参数传入,则函数很长很难看,并且多个数据的返回也不好实现.所以想到了把数据打包后传递.这在 ...