尝试在Mac OS High Sierra上通过brew安装mysql5.7
我使用了以下命令:
sudo rm -rf /usr/local/var/mysql/
brew install [email protected]
brew postinstall [email protected]
得到了以下错误
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
),则应删除以下行:
mysqlx-bind-address = 127.0.0.1
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句