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.

相关推荐
神龙天舞20019 小时前
MySQL 备库为什么会延迟好几个小时
android·数据库·mysql
每天都要进步哦14 小时前
SQL单行函数详解:字符、数字、日期、转换与通用函数全解析
数据库·mysql
南凉北往15 小时前
PandasAI连接LLM对MySQL数据库进行数据分析
数据库·mysql·数据分析
【心态好不摆烂】18 小时前
MySQL——复合查询
数据库·mysql
瞬间&永恒~18 小时前
【MySQL】 InnoDB 锁等待排查与并发压测实验
运维·数据库·mysql
烟漠河洛19 小时前
俄罗斯电商3200亿卢布疯长:跨境支付与多平台订单系统架构解析
mysql·php
总捣什么乱120 小时前
MySQL MySQL是怎么保证主备一致的?
android·mysql·adb
起司喵喵1 天前
Flutter-MacOS桌面OS系统|flutter.+window_manager客户端OS模板
flutter·macos·策略模式
代码对我眨眼睛1 天前
macOS Google Chrome 常用快捷键
前端·chrome·macos
啊真真真1 天前
macOS下libnfc ..写卡失败问题及解决方案
macos·策略模式