$ brew install mysql
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
ansible gitbucket libdazzle mysql@5.5 urh
b2-tools gnome-builder link-grammar pgcli youtube-dl
blockhash goreleaser mapcrafter phplint
ccrypt ipfs mikutter quicktype
chrome-cli jenkins-job-builder mongo-cxx-driver skinny
dxpy jpeg-turbo mysql tup
==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mysql-8.0.12.high_sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/man/man8/mysqld.8
/usr/local/share/man/man8 is not writable.
You can try again using:
brew link mysql
==> /usr/local/Cellar/mysql/8.0.12/bin/mysqld --initialize-insecure --user=iosdevlog --basedir=/usr/local/Cellar/mysql
==> 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
==> Summary
🍺 /usr/local/Cellar/mysql/8.0.12: 255 files, 233.0MB
$ sudo chown -R $(whoami) /usr/local
$ brew link mysql
Linking /usr/local/Cellar/mysql/8.0.12... 79 symlinks created
$ mysql_secure_installation
macOS 安装 mysql
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- brew install mysql 详细参考 http://blog.neten.de/posts/2014/0...
- mysql server 安装 下载 https://dev.mysql.com/downloads/mysql/...