By
Jack.LN
更新日期:
在终端中自己开启
sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
每次都要这样开启
设置权限
sudo emacs /Library/LaunchDaemons/com.mysql.mysql.plist
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <?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>
|
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
这样每次就都可以使用xampp的控制台来启动了