Homebrew 安装mysql

在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               [email protected]

mysql                         mysql-cluster                 mysql-connector-c++           mysql-search-replace          [email protected]                     mysqltuner

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

caskroom/cask/sqlpro-for-mysql 

决定安装5.6

cmd:~ dongjunjie$ brew install [email protected]

Updating Homebrew...

==>Auto-updated Homebrew!

Updated 1 tap (homebrew/core).

==>New Formulae

grakn

==>Updated Formulae

ammonite-repl         conan                 git-town              lablgtk               [email protected]          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/[email protected]_1.sierra.bottle.tar.gz

######################################################################## 100.0%

==>Pouring [email protected]_1.sierra.bottle.tar.gz

==>Using the sandbox

==>/usr/local/Cellar/[email protected]/5.6.36_1/bin/mysql_install_db --verbose --user=dongjunjie --basedir=/usr/local/Cellar/[email protected]/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/[email protected]/bin:$PATH"‘ >> ~/.bash_profile

For compilers to find this software you may need to set:

    LDFLAGS:  -L/usr/local/opt/[email protected]/lib

    CPPFLAGS: -I/usr/local/opt/[email protected]/include

To have launchd start [email protected] now and restart at login:

  brew services start [email protected]

Or, if you don‘t want/need a background service you can just run:

  /usr/local/opt/[email protected]/bin/mysql.server start

==>Summary

??  /usr/local/Cellar/[email protected]/5.6.36_1: 346 files, 154.2MB

上面会告诉你的很清楚 ,如果现在启动并让其开机启动如下操作

To have launchd start [email protected] now and restart at login:

  brew services start [email protected]

 否则,如果不想做后段服务启动动可以这样

Or, if you don‘t want/need a background service you can just run:

  /usr/local/opt/[email protected]/bin/mysql.server start

时间: 2024-08-26 23:52:17

Homebrew 安装mysql的相关文章

使用homebrew安装mysql

2.使用homebrew安装mysql及遇到的问题 安装命令 brew install mysql 安装完成之后,本地命令行输入mysql命令,发现无此命令 commond not found 首先,检查是否是安装了 重新执行一遍 brew install mysql 命令行提示: Warning: mysql-5.7.10 already installed, it's just not linked 然后网上查找解决方法,最后解决方法是执行: brew link --overwrite my

Mac下 homebrew 安装mysql

操作步骤 安装homebrew brew install mysql 安装mysql 安装完成之后,可以运行命令启动mysql服务 mysql.server start 然后输入命令设置密码 mysql_secure_installation 设置完成之后,进入mysql服务 mysql -uroot -p Enter password: 遇到问题 1.brew install 过程中经常超时的问题 解决方案 手动下载mysql安装包 https://homebrew.bintray.com/b

Mac使用 homebrew 安装MySQL

1     brew install mysql ( 安装 ) 2     bash mysql.server start (启动) 3     mysql -uroot (登陆) mysql> show databases; 4    退出MySQL命令:exit + (回车) ************************** 首先在打开DOS窗口,然后进入目录 mysqlbin,再键入命令mysql -uroot -p,回车后提示你输密码, 如果刚安装好MYSQL,超级用户root是没有

Mac下使用Homebrew 安装MySQL

安装 brew install mysql 卸载 brew uninstall mysql 启动mysql    mysql.server start 管理员账户    mysql -uroot 

Homebrew安装Mysql后的两步必要的命令

linxmousedeiMac:~ linxmouse$ mysql.server start Starting MySQL .. SUCCESS! linxmousedeiMac:~ linxmouse$ mysql_upgrade -uroot -p 原文地址:https://www.cnblogs.com/linxmouse/p/10453522.html

Homebrew(brew)安装MySQL成功后无法登录

Homebrew简称brew,OSX上的软件包管理工具,在Mac终端可以通过brew安装.更新.卸载各种软件,(简直就是神器级武器). 废话不多说,没安装brew自己去百度学习安装,这里就不多说了. 1.首先在终端使用命令,这是搜索brew上的MySQL各个版本 brew search mysql 2.选择自己需要的版本,安装MySQL,这里我安装为5.7版本 brew install [email protected] 3.执行后稍等片刻,它会自动安装,以下为安装成功后显示的信息 MySQL

Mac 安装 MySQL

在 Mac 下用 Homebrew 安装 MySQL, 网上的教程倒是很多,不过大多数都很默契地雷同.如果稍有点定制要求,就无从下手了. 我先也不免俗,从基本的开始: 一.首先安装 Homebrew 1 2 3 $ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" $ brew install git $ brew update 二.安装 MySQL 用下面的命令就可以自动安装了: 1 $ brew inst

在MAC OS X系统上面安装mysql

为了装逼(随便戒游戏),弄个MAC MINI OS X系统版本是10.10.1 (14B25) 本人java农一枚,平时上班都是用oracle的,但自己练手都是用mysql,所以一般自己的机子都会有mysql跟oracle(貌似现在OS X也能安装oracle了,听说会很折腾) 随着环境逐渐搭建起来,今天就要安装mysql 二话不说就去oracle官网找mysql并下载, 而今天官网的下载最新的是Mac OS X 10.9 (x86, 64-bit), mysql 版本5.6.22 对于我这样一

解决Mac下Sequel Pro 1.1 连接 Homebrew安装Mysql5.7.8的问题 Sequel Pro 1.1 encountered an unexpected error

解决Mac下Sequel Pro 1.1 连接 Homebrew安装Mysql5.7.8的问题 Sequel Pro encountered an unexpected error Sequel Pro 1.1 encountered an unexpected error when connecting to mysql 5.7.8 rc via ssh 在OS X El Capitan环境下用 + homebrew安装 + MySQL 5.7.9: 解决办法,运行下面得命令升级mysql,重