如何解决XAMPP中MySQL启动失败
1个回答
展开全部
每次都要执行sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
并输密码实在是醉了,试试我这个办法
1,sudo vim /Library/LaunchDaemons/com.mysql.mysql.plist
然后输入
<?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>com.mysql.mysqld</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/mysql/bin/mysqld_safe</string>
<string>--user=mysql</string>
</array>
</dict>
</plist>
2,然后执行sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
3,重启见证奇迹
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询