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# 封装SqlBulkCopy,让批量插入更方便

      关于 SqlServer 批量插入的方式,前段时间也有大神给出了好几种批量插入的方式及对比测试(http://www.cnblogs.com/jiekzou/p/6145550.html),估计大家也 ...

    2. opencv: 基本知识;

      注: 该篇博文为扩展型,后期将逐步进行扩展: 1. IplImage转Mat IplImage转Mat: IplImage *pImage = cv::loadImage(“”); Mat imgM ...

    3. nlp知识

      1.词集模型 将每个词的出现与否作为一个特征,不考虑词频.也就是一个词在文本在文本中出现1次和多次特征处理是一样的. 2.词袋模型 与词集相比,会考虑词频 sklearn中 CountVectoriz ...

    4. break #立即终止本次循环

      #!/user/bin/python# -*- coding:utf-8 -*-# print(111)# while True:# print(222)# print(333)# break #立即 ...

    5. 设计模式_代理模式_在SqlSessionTemplate(Spring)中的应用

      1.SqlSessionTemplate的构造函数,根据传入的SqlSessionFactory和ExecutorType创建一个Spring管理的SqlSession,并生成SqlSession的动 ...

    6. Java工具之上传文件

      4个代码 1.前端JSP 2.自定义异常类 3.文件上传抽象类 4.Servlet 1.JSP <%@ page contentType="text/html;charset=UTF- ...

    7. JAVA核心技术I---JAVA基础知识(对象与类)

      一:规范 将每一个类存在一个单独的源文件中 Employee.java public class Employee { private int age; private float salay; pr ...

    8. HDU 1019(求最小公倍数 **)

      题意是求一组数的最小公倍数,不用存,每次输入即刻处理即可. 补充一点:两个自然数的最大公约数与它们的最小公倍数的乘积等于这两个数的乘积. 代码如下: #include <bits/stdc++. ...

    9. C#中foreach命令的使用

      在Python中,for循环不仅可以用来做指定次数的循环,还可以利用for i in xxx:来实现元素的遍历,遍历的对象几乎可以是任意格式.而在C++以及C#中,除了普通的for循环之外,也提供了这 ...

    10. Java面试题系列(五)

      序言 基本数据类型数组和引用数据类型数组的区别 基本数据类型数组: 其中存储的元素为基本类型数据. 引用类型数组: 元素是对象,其中存储的是对象的地址值. 引用数据类型的数组使用规定长度的方式进行初始 ...