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. Scrapy框架的执行流程解析

      这里主要介绍七个大类Command->CrawlerProcess->Crawler->ExecutionEngine->sceduler另外还有两个类:Request和Htt ...

    2. GO 中输出打印的常用函数

      1.Println 可以打印字符串和变量(任何类型)    println函数在输出后自动增加一个换行 例: a:=10 b:=“string” fmt.Println(a)  //right fmt ...

    3. nginx的rewrite指令

      需求:我们在接收到一个/api/upload 开头的url的时候 要转发到另外一个地址.但是又不想追加/api/upload  只想追加/upload 地址. Nginx提供了rewrite指令,用于 ...

    4. 16.观察者模式(Observer Pattern)

      动机(Motivate):     在软件构建 过程中,我们需要为某些对象建立一种“通知依赖关系” --------一个对象(目标对象)的状态发生改变,所有的依赖对象(观察者对象)都将得到通知.如果这 ...

    5. net-snmp开发教程

      目录 1................................................................................................ ...

    6. python 线程(创建2种方式,锁,死锁,递归锁,GIL锁,守护进程)

      ###############总结############ 线程创建的2种方式(重点) 进程:资源分配单位    线程:cpu执行单位(实体) 线程的创建和销毁的开销特别小 线程之间资源共享,是同一个 ...

    7. 4.Zuul-限流

      令牌桶 限流流程图: RateLimitFilter : package com.wangfajun.filter; import com.alibaba.fastjson.JSON; import ...

    8. Hbuilder开发app时生成ios要的mobileprovision和p12文件步骤.

      1.在MAC电脑.钥匙串串访问->证书助理->从证书颁发机构请求证书,创建一个证书为certSigningRequest文件 2.在Apple Developer中的Certificate ...

    9. PHP6天基础知识部分

      ---恢复内容开始--- (一).基础(PHP超文本预处理器) 1.PHP标记(2种) 1.<?php?>:大众的用法?和php之间不能有空格否则无效. 2.<??>:小众的用 ...

    10. jQuery使用(五):DOM操作之插入和删除元素

      插入: insertBofore() before() insertAfter() after() appendTo() append() prependTo() prepen() 删除: remov ...