美文网首页
mac系统brew安装mysql

mac系统brew安装mysql

作者: 博文_bebb | 来源:发表于2019-08-13 11:34 被阅读0次

前言

由于自己一直钟情mac系统做开发,在这里记录一下自己开发环境的配置流程


使用brew安装mysql

mac里有个神奇的工具Homebrew,这里不多做介绍,感兴趣的可以去查下他的简介和介绍

如果你的电脑配置好了Homebrew你就可以使用以下命令就可以完成安装了

brew install mysql
==> Auto-updated Homebrew!
Updated 1 tap (caskroom/versions).

==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.16.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/65/65e6629740ca75ceaae575b4cc68f2cf133619d08cdcd4cb2de
###########                                                               15.8%^C
➜  ~ brew install mysql
==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.16.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/65/65e6629740ca75ceaae575b4cc68f2cf133619d08cdcd4cb2de
######################################################################## 100.0%
==> Pouring mysql-8.0.16.mojave.bottle.tar.gz
==> /usr/local/Cellar/mysql/8.0.16/bin/mysqld --initialize-insecure --user=dz004-006 --basedir=/usr/lo
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
    mysql_secure_installation

MySQL is configured to only allow connections from localhost by default

To connect run:
    mysql -uroot

To have launchd start mysql now and restart at login:
  brew services start mysql
Or, if you don't want/need a background service you can just run:
  mysql.server start

相关文章

网友评论

      本文标题:mac系统brew安装mysql

      本文链接:https://www.haomeiwen.com/subject/mjsvjctx.html