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.

相关推荐
JZC_xiaozhong2 小时前
电商ERP如何同步订单数据到MySQL?集成方案解析
数据库·mysql·数据分析·etl工程师·嵌入式实时数据库·电商erp集成·数据集成与应用集成
-大头.3 小时前
Docker实战:构建高性能MySQL主从复制集群(读写分离)
mysql·docker·容器
burning_maple4 小时前
mysql数据库笔记
数据库·笔记·mysql
周某人姓周5 小时前
sqlilabs靶场通关详解
数据库·mysql·安全·网络安全
霖霖总总5 小时前
[小技巧41]InnoDB 如何判断一行数据是否可见?MVCC 可见性机制深度解析
数据库·mysql
Mr.徐大人ゞ8 小时前
生产可用的 MySQL8 一键安装脚本和一键巡检脚本
mysql
星梦清河8 小时前
MySQL—分组函数
数据库·mysql
霖霖总总8 小时前
[小技巧33]MySQL 事务持久化的一致性保障:binlog 与 redo log 的两阶段提交机制解析
数据库·mysql
消失的旧时光-194311 小时前
第五课:数据库不是存数据那么简单 —— MySQL 与索引的后端视角
数据库·mysql
nice_lcj52011 小时前
MySQL中GROUP_CONCAT函数详解 | 按日期分组拼接销售产品经典案例
数据库·mysql