Last active
June 13, 2018 09:08
-
-
Save dj1020/c1d53f36358ab281805af3bc88fd8d16 to your computer and use it in GitHub Desktop.
Automatically start MAMP without password confirm - MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Label</key> | |
<string>info.mamp.start.mysql</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Applications/MAMP/Library/bin/mysqld_safe</string> | |
<string>--port=3306</string> | |
<string>--datadir=/Applications/MAMP/db/mysql56</string> | |
<string>--ledir=/Applications/MAMP/Library/bin</string> | |
<string>--socket=/Applications/MAMP/tmp/mysql/mysql.sock</string> | |
<string>--pid-file=/Applications/MAMP/tmp/mysql/mysql.pid</string> | |
<string>--log-error=/Applications/MAMP/logs/mysql_error_log</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>UserName</key> | |
<string>ADD_YOUR_SYSTEM_USERNAME_HERE_NOT_DB_ACCOUNT</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
關鍵應該是設了
<string>--ledir=/Applications/MAMP/Library/bin</string>
的關係