Skip to content

Instantly share code, notes, and snippets.

@dj1020
Last active June 13, 2018 09:08
Show Gist options
  • Save dj1020/c1d53f36358ab281805af3bc88fd8d16 to your computer and use it in GitHub Desktop.
Save dj1020/c1d53f36358ab281805af3bc88fd8d16 to your computer and use it in GitHub Desktop.
Automatically start MAMP without password confirm - MySQL
<?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>
@dj1020
Copy link
Author

dj1020 commented Jun 13, 2018

關鍵應該是設了 <string>--ledir=/Applications/MAMP/Library/bin</string> 的關係

@dj1020
Copy link
Author

dj1020 commented Jun 13, 2018

@dj1020
Copy link
Author

dj1020 commented Jun 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment