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

相关推荐
墨迹的陌离3 小时前
【Linux】重生之从零开始学习运维之Mysql
linux·运维·服务器·数据库·学习·mysql
就叫飞六吧6 小时前
mysql全量备份、全量恢复demo
android·mysql·adb
Yu_Lijing6 小时前
MySQL进阶学习与初阶复习第二天
数据库·c++·学习·mysql
小高Baby@8 小时前
解决幻读问题
数据库·mysql
左直拳8 小时前
linux下变更mysql的数据文件目录
mysql·datadir·数据目录·变更数据目录·变更mysql目录
MacroZheng9 小时前
换掉Navicat!一款集成AI功能的数据库管理工具,功能真心强大!
java·后端·mysql
Misnice9 小时前
Mac查看本机ip地址
网络协议·tcp/ip·macos
旧时光巷9 小时前
SQL基础⑫ | 视图篇
数据库·sql·学习·mysql·oracle·视图
二向箔reverse10 小时前
在 CentOS 中安装 MySQL 的过程与问题解决方案
linux·mysql·centos
WJ.Polar10 小时前
Python与Mysql
开发语言·数据库·python·mysql