N20*_*753 25 mysql macos installation
尝试在 Mac OS High Sierra 上使用 brew 安装 mysql5.7
我使用了以下命令:
sudo rm -rf /usr/local/var/mysql/
brew install mysql@5.7
brew postinstall mysql@5.7
Run Code Online (Sandbox Code Playgroud)
得到以下错误
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
Run Code Online (Sandbox Code Playgroud)
因为我做不到
mysql_secure_installation
Run Code Online (Sandbox Code Playgroud)
哪个抛出
Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Run Code Online (Sandbox Code Playgroud)
sbk*_*ers 57
如果您能够找到您的my.cnf
文件(对我来说,它在 中/usr/local/etc/my.cnf
),您应该删除以下行:
mysqlx-bind-address = 127.0.0.1
Run Code Online (Sandbox Code Playgroud)
小智 6
就像@sbkrogers所说,必须删除该行,但由于我使用Homebrew安装mysql@5.7:
我的文件位于/opt/homebrew/etc/my.cnf
. 在哪里删除
mysqlx-bind-address = 127.0.0.1
第一次中止安装后,需要删除以下文件夹:
/opt/homebrew/Cellar/mysql@5.7
/opt/homebrew/var/mysql
...然后尝试再次安装。brew install mysql
安装成功后,重启终端
归档时间: |
|
查看次数: |
6739 次 |
最近记录: |