mac-m2安装mysql遇到的问题

  1. 通过brew安装
bash 复制代码
brew install mysql
  1. 启动mysql
bash 复制代码
brew services start mysql

结果报错

Bootstrap failed: 5: Input/output error

Try re-running the command as root for richer errors.

Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/wuyf/Library/LaunchAgents/homebrew.mxcl.mysql.plist` exited with 5.

报错提示是/bin/launchctl要加开机启动项, 而mac系统13+版本的权限策略有限制. 除非关闭SIP, 这个我没试.

我的是mysql 9.0.1版本, 网上有个和我情况一样的, 参考链接如下:

sw​​​​​​​w​​​​​​​w​​​​​​​w​​​​​​​w​​​​​​​w​​​​​​​https://stackoverflow.com/questions/69094757/5-input-output-error-error-failure-while-executing-bin-launchctl-bootstrap

按这个几个命令执行后, 确实可以正常启动了.

  1. mysql虽然可以使用了, Navicat工具却连不上, 报错如下:

2059 - Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(../Frameworks/caching_sha2_password.so, 0x0002): tried: '../Frameworks/caching_sha2_password.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS../Frameworks/caching_sha2_password.so' (no such file), '/Applications/Navicat Premium.app/Contents/Frameworks/../Frameworks/caching_sha2_password.so' (no such file), '/Applications/Navicat Premium.app/Contents/Frameworks/../Frameworks/caching_sha2_password.so' (no such file), '/usr/lib/.

升级Navicat可以解决.

我换了个免费的工具 Beekeeper Studio.

相关推荐
[听得时光枕水眠]22 分钟前
MySQL基础(三)DQL(Data Query Language,数据查询语言)
数据库·mysql·oracle
一只叫煤球的猫4 小时前
MySQL 8.0 SQL优化黑科技,面试官都不一定知道!
后端·sql·mysql
寒山李白4 小时前
MySQL安装与配置详细讲解
数据库·mysql·配置安装
SY.ZHOU5 小时前
Significant Location Change
macos·ios·cocoa
zhangzhangkeji6 小时前
(33)课54--??:3 张表的 join-on 连接举例,多表查询总结。
mysql
buyue__7 小时前
MacOS解决局域网“没有到达主机的路由 no route to host“
macos
?ccc?7 小时前
MySQL主从复制与读写分离
数据库·mysql
行止68 小时前
MySQL主从复制与读写分离
linux·数据库·mysql