1. 安装Homebrew,详细步骤参见Homebrew官网。
  2. brew doctor确认brew在正常工作。
  3. brew update更新包。
  4. brew install mysql 安装mysql。log如下:

    ==> Installing dependencies for mysql: openssl
    ==> Installing mysql dependency: openssl
    ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2l.sierra.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Pouring openssl-1.0.2l.sierra.bottle.tar.gz
    ==> Using the sandbox
    ==> Caveats
    A CA file has been bootstrapped using certificates from the SystemRoots
    keychain. To add additional certificates (e.g. the certificates added in
    the System keychain), place .pem files in
    /usr/local/etc/openssl/certs

    and run
    /usr/local/opt/openssl/bin/c_rehash

    This formula is keg-only, which means it was not symlinked into /usr/local,
    because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

    If you need to have this software first in your PATH run:
    echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

    For compilers to find this software you may need to set:
    LDFLAGS: -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

    ==> Summary

    macbook install mysql的更多相关文章

    1. Install MySQL on Mac by Homebrew

      1.  安装mysql brew update brew install mysql 2. 启动mysql mysql.server start 3. 登录mysql mysql -uroot -p ...

    2. yum install mysql

      rpm -qa|grep -i mysqlmysql-libs-5.1.52-1.1.alios6.1.x86_64mysql-5.1.52-1.1.alios6.1.x86_64mysql-deve ...

    3. 在OSX狮子(Lion)上安装MYSQL(Install MySQL on Mac OSX)

      这篇文章简述了在Mac OSX狮子(Lion)上安装MySQL Community Server最新版本v10.6.7的过程. MySQL是最流行的开源数据库管理系统.首先,从MySQL的下载页面上下 ...

    4. ubuntu install mysql server method

           recently try to install mysql in my computer so that  I can practise some sql statement on seve ...

    5. install mysql from source and troubleshooting example

      I tried to install MySQL 5.7 from source file and upgrading previous MySQL version to the lastest 5. ...

    6. 执行了‘“npm install mysql"

      http是核心模块,封装到安装包里面了,如果在你项目的当前目录下<code>npm install mysql<code>的话就会在你当前目录下的node_modules文件夹 ...

    7. Install MySQL 5.7 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11

      MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user ...

    8. Install MySql on CentOS

      Installing & Configuring MySQL Server This Howto will show you how to install MySQL 5.x, start t ...

    9. How to Install MySQL on CentOS 7

      CentOS 7的yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载   # wget http://dev.mysql.com/get/mysql-communit ...

    随机推荐

    1. C++回顾day01---<const常量重点>

      一:定义常整型数 const int a;(或者int const a;)  不涉及指针 不可改变值(也不可通过指针修改) 二:定义一个指向常整型数的指针 const int* c;   可改指针指向 ...

    2. request模块的使用

      安装方式 $ pip install requests 基本GET请求(headers参数 和 parmas参数) 1. 最基本的GET请求可以直接用get方法 response = requests ...

    3. python遇到的知识点

      python遇到的知识点,记录一下.方便学习. 文件相关操作 查了资料,关于open()的mode参数: 'r':读 'w':写 'a':追加 'r+' == r+w(可读可写,文件若不存在就报错(I ...

    4. java语音转文字

      用到的百度提供的api 需要把wav音频文件转成16k的频率,必须转,不转百度api解析不出来.显示音频文件不清晰错误.想要转化还必须要有ffmpeg程序,这个自己百度去下载.然后拿转好的文件扔到百度 ...

    5. redis的一些修改

      redis修改的文件目录:redis.conf 1.bind:127.0.0.1 默认是本地访问,但是redis是支持集群的,改成0.0.0.0 可以使任意服务器访问 2.daemonize:yes ...

    6. ContentType组件

      django提供的一个快速连表操作的组件 适用于:一个字段确定不了唯一: 如:pricepolicy表中,course_id和content_type中对应的课程类型id才能确定唯一: model.p ...

    7. JavaSrcipt的数字(number):深入理解内部机制

      一.数字的语法 JavaScript中的数字字面量一般用十进制表示.在JavaScript中表示数字的数据类型只有一种Number,这种天使与魔鬼同体的数据类型也就只有js了. //同时表达整数和浮点 ...

    8. HDU 1575(裸矩阵快速幂)

      emmmmm..就是矩阵快速幂,直接附代码: #include <cstdio> using namespace std; ; ; struct Matrix { int m[maxn][ ...

    9. 解析ArcGis的标注(二)——认识ArcGis标注标签

      该“标注”系列博文的标注引擎使用“标准标注引擎(standard label engine)”,这个概念如不知道,可不理会,ArcGis默认标注引擎就是它. 本篇的标注语句解析使用VBScript,注 ...

    10. 039、Data Volume 之 bind mount (2019-02-28 周四)

      参考https://www.cnblogs.com/CloudMan6/p/7142150.html     Date Volume 本质上是Dokcer host文件系统中的目录或者文件,能够直接被 ...