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

  • brew services stop mysql
  • brew install mysql@8.4
  • brew services start mysql@8.4
  • brew services stop mysql@8.4
  • brew services start mysql

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

  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.

相关推荐
2301_771717219 小时前
解决mysql报错:1406, Data too long for column
android·数据库·mysql
绘梨衣5479 小时前
Docker+FastAPI+MySQL 项目部署报错汇总
mysql·docker·fastapi
dvjr cloi9 小时前
MySQL Workbench菜单汉化为中文
android·数据库·mysql
czlczl2002092510 小时前
利用“延迟关联”优化 MySQL 巨量数据的深分页查询
数据库·mysql
俺不要写代码11 小时前
数据库:函数
数据库·mysql
Ruci ALYS12 小时前
MySQL大小写敏感、MySQL设置字段大小写敏感
数据库·mysql
@小柯555m15 小时前
MySql(高级操作符--操作符混合运用)
数据库·sql·mysql
向風而行16 小时前
MySQL详解
数据库·mysql
Bert.Cai17 小时前
MySQL CURTIME()函数详解
数据库·mysql
Bert.Cai17 小时前
MySQL CURDATE()函数详解
数据库·mysql