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

 

Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/<myUserName>/Library/LaunchAgents/[email protected]` exited with 5.

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

查看 [email protected]文件,能看到具体的启动命令

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

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>