mac 启动mysql Error: Failure while executing; `/bin/launchctl bootstrap gui/501

bash 复制代码
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/<myUserName>/Library/LaunchAgents/homebrew.mxcl.mysql@8.0.plist` exited with 5.

homebrew 给的提示看不到具体消息

查看 homebrew.mxcl.mysql@8.0.plist文件,能看到具体的启动命令

bash 复制代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>KeepAlive</key>
	<true/>
	<key>Label</key>
	<string>homebrew.mxcl.mysql@8.0</string>
	<key>LimitLoadToSessionType</key>
	<array>
		<string>Aqua</string>
		<string>Background</string>
		<string>LoginWindow</string>
		<string>StandardIO</string>
		<string>System</string>
	</array>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/local/opt/mysql@8.0/bin/mysqld_safe</string>
		<string>--datadir=/usr/local/var/mysql</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>WorkingDirectory</key>
	<string>/usr/local/var/mysql</string>
</dict>
</plist>

然后直接用/usr/local/opt/mysql@8.0/bin/mysqld_safe命令启动,看到具体报错信息,提示权限不够,发现有个文件夹用户组不对,改下用户组就好了

相关推荐
无定义_1 小时前
萌新联赛(六)
macos·objective-c·cocoa
Omics Pro1 小时前
整合多组学分析+生物医学发现!对话式多智能体AI
数据库·人工智能·mysql·机器学习·自然语言处理
firstacui2 小时前
Mysql调优
android·mysql·adb
小王C语言2 小时前
MySQL 视图:视图是什么,视图和基表之间的关系
数据库·mysql
程序员-Benothing2 小时前
什么是 MySQL 的主从同步机制?它是如何实现的?
android·数据库·mysql
醉颜凉11 小时前
KingbaseES日期格式化:MySQL date_format函数的迁移指南
mysql·date_format·kingbasees·数据库兼容·函数迁移
醉颜凉11 小时前
MySQL 8 忘记 root 密码?这两种方法帮你轻松解决
数据库·mysql·adb
风安•辛幸11 小时前
mac上微信最新v4以上版客户端多开教程,亲测可用
macos·微信
刃神太酷啦11 小时前
Linux 系统 MySQL 完整安装配置教程:从卸载 MariaDB 到优化 my.cnf----《Hello MySQL!》(1)
android·linux·c语言·c++·mysql·leetcode·mariadb
xxwl58512 小时前
MySQL 基础学习笔记
数据库·mysql