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命令启动,看到具体报错信息,提示权限不够,发现有个文件夹用户组不对,改下用户组就好了

相关推荐
清风徐来QCQ1 小时前
阿里云centos7-mysql的使用
mysql·阿里云·云计算
Rhys..2 小时前
Python&Flask 使用 DBUtils 创建通用连接池
开发语言·python·mysql
舒一笑2 小时前
为什么where=Version就是乐观锁了?
后端·mysql·程序员
小熊h2 小时前
MySQL集群高可用架构——组复制 (MGR)
linux·数据库·mysql
sunshine-sm3 小时前
CentOS Steam 9安装 MySQL 8
linux·运维·服务器·数据库·mysql·centos·centos stream
tangweiguo030519873 小时前
基于 Django 与 Bootstrap 构建的现代化设备管理平台
后端·django·bootstrap
帅得不敢出门4 小时前
macOS苹果电脑运行向日葵远程控制软件闪退
windows·macos·远程控制·向日葵
夏小花花5 小时前
Mac m系列芯片向日葵打不开 解决方案
macos·mac
刹_那5 小时前
MAC 多个版本 JDK进行切换
macos