警告:在Mac OS High Sierra中尝试使用brew安装mysql时,安装后步骤未成功完成 [英] Warning: The post-install step did not complete successfully, When trying to install mysql using brew in Mac OS High Sierra

查看:289
本文介绍了警告:在Mac OS High Sierra中尝试使用brew安装mysql时,安装后步骤未成功完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Mac OS High Sierra上使用brew安装mysql5.7

Trying to install mysql5.7 with brew on Mac OS High Sierra

我使用了以下命令:

sudo rm -rf /usr/local/var/mysql/
brew install mysql@5.7
brew postinstall mysql@5.7

发现以下错误

2019-10-05T02:59:24.136970Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-10-05T02:59:24.138997Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2019-10-05T02:59:24.215676Z 0 [Warning] InnoDB: New log files created, LSN=45790
2019-10-05T02:59:24.232279Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2019-10-05T02:59:24.286214Z 0 [ERROR] unknown variable 'mysqlx-bind-address=127.0.0.1'
2019-10-05T02:59:24.286281Z 0 [ERROR] Aborting

因为我不能做

mysql_secure_installation

会抛出

Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

推荐答案

如果能够找到my.cnf文件(对我来说,它位于/usr/local/etc/my.cnf中),则应删除以下行:

If you are able to find your my.cnf file (for me, it was in /usr/local/etc/my.cnf) you should remove the below line:

mysqlx-bind-address = 127.0.0.1

这篇关于警告:在Mac OS High Sierra中尝试使用brew安装mysql时,安装后步骤未成功完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆