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.

相关推荐
感谢地心引力26 分钟前
在codex里面使用Deepseek-v4,支持mac和windows双系统
windows·gpt·macos·ai·codex·deepseek
搬砖的小码农_Sky32 分钟前
AI Agent:macOS Sequoia 部署 OpenClaw 完整教程
人工智能·macos·ai·人机交互
DIY源码阁9 小时前
JavaSwing学生成绩管理系统 - MySQL版
java·数据库·mysql·eclipse
不总是12 小时前
[2026最新] Windows 免安装版 MySQL 8 详细安装配置教程(ZIP 压缩包版)
数据库·windows·mysql
徒手猫13 小时前
MySQL 窗口函数完全指南
数据库·mysql
betazhou13 小时前
电科金仓数据库V9 MySQL兼容版本搭建一主一从体验
数据库·mysql·oracle·主从·高可用·kingbase·v9 mysql兼容版本
元宝骑士14 小时前
MySQL 8.0 递归 CTE:树形结构一键生成层级 Path 并更新回表
后端·mysql
wbs_scy15 小时前
MySQL 多表连接查询实战:内连接 + 外连接
数据库·mysql
天上路人16 小时前
AI 降噪不是“凭空复原语音”,而是在“已有语音信息”的基础上进行增强。
ide·人工智能·macos·语音识别·xcode
один but you16 小时前
【无标题】
macos·objective-c·cocoa