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.

相关推荐
Dachui_11221 小时前
MacOS上如何运行内网穿透详细教程
macos
Johny_Zhao2 小时前
MySQL 高可用集群搭建部署
linux·人工智能·mysql·信息安全·云计算·shell·yum源·系统运维·itsm
oydcm2 小时前
MySQL数据库概述
数据库·mysql
Bruce_Liuxiaowei3 小时前
使用Python脚本在Mac上彻底清除Chrome浏览历史:开发实战与隐私保护指南
chrome·python·macos
husterlichf4 小时前
MYSQL 常用数值函数 和 条件函数 详解
数据库·sql·mysql
卡皮巴拉爱吃小蛋糕4 小时前
MySQL的MVCC【学习笔记】
数据库·笔记·mysql
玄明Hanko4 小时前
生产环境到底能用Docker部署MySQL吗?
后端·mysql·docker
清流君4 小时前
【MySQL】数据库 Navicat 可视化工具与 MySQL 命令行基本操作
数据库·人工智能·笔记·mysql·ue5·数字孪生
邂逅岁月4 小时前
MySQL表的增删改查初阶(下篇)
数据库·sql·mysql
iFlyCai6 小时前
对Mac文字双击或三击鼠标左键没有任何反应
macos·计算机外设