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. opencv: 基本知识(二);

      1.cvArr* 与 cv::Mat之间的转换; cv::Mat ---- > cvArr* cv::Mat img; IplImage temp = IplImage(img); cvArr ...

    2. python自动化开发-[第九天]-异常处理、进程

      今日概要: 1.异常处理使用 2.进程 3.paramiko模块使用 一.异常处理 1.常见的错误异常 #错误异常一 print(a) #NameError #错误异常二 int('sdadsds') ...

    3. Storm中重要对象的生命周期

      Spout方法调用顺势 declareOutputFields()(调用一次) open() (调用一次) activate() (调用一次) nextTuple() (循环调用 ) deactiva ...

    4. Bootstrap模态框修改出现的位置和大小

      <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...

    5. idea打开项目没有文件目录

      如题,利用idea打开一个项目,然而并没有src等主要文件目录. 方法:使用ctrl+shift+alt+s打开目录结构,选择module,再选择import module,注意选择SDK,即JDK.

    6. hdu 6383

      题意是说给定一个序列,能否通过任意次对部分数字 +1,对部分数字 -2的操作使得序列在满足全部非负且任意两元素的差值不超过1的前提下最小值最大,求最大值. 一开始的时候没有注意到整个序列全是非负数,还 ...

    7. 【移动端】300ms延迟以及点透事件原因以及解决方案

      产生原因 移动端会有双击缩放的这个操作,因此浏览器在click之后要等待300ms,看用户有没有下一次点击,也就是这次操作是不是双击 说完移动端点击300ms延迟的问题,还不得不提一下移动端点击穿透的 ...

    8. 基本数据类型转String,String转基本数据类型

      基本数据类型 --> 字符串 1.基本数据类型+"" String s = 5 + ""; 2.使用包装类的静态方法toString(参数),参数是要转化 ...

    9. SpringBoot系列: 使用 flyway 管理数据库版本

        Flyway 和 Liquibase 都是 Java 项目中常用的 DB migration 工具, 从使用简便性看,Flyway 比 Liquibase 更简单, 从 github 的 star ...

    10. Vertica系列: 表的分段和分区

      Vertica 有两个数据分布的概念, segmentation 和 partition, 至少有下面几个区别: 1.目的方面:segmentation 解决各节点数据倾斜问题, 适用于木桶原理, 数 ...