MySQL on Mac OSX change sql_mode in LaunchDaemons

After installing MySQL for Mac OSX a launch daemon file (/Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist) is created. Adding lines mentioned in Orange will force mysql daemon to use custom option.

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=”1.0″>
<dict>
<key>Label</key>             <string>com.oracle.oss.mysql.mysqld</string>
<key>ProcessType</key>       <string>Interactive</string>
<key>Disabled</key>          <false/>
<key>RunAtLoad</key>         <true/>
<key>KeepAlive</key>         <true/>
<key>SessionCreate</key>     <true/>
<key>LaunchOnlyOnce</key>    <false/>
<key>UserName</key>          <string>_mysql</string>
<key>GroupName</key>         <string>_mysql</string>
<key>ExitTimeOut</key>       <integer>600</integer>
<key>Program</key>           <string>/usr/local/mysql/bin/mysqld</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/mysql/bin/mysqld</string>
<string>–user=_mysql</string>
<string>–sql_mode=NO_ENGINE_SUBSTITUTION</string>
            <string>–open_files_limit=100000</string>
            <string>–wait_timeout=600000</string>
            <string>–max_allowed_packet=16M</string>
<string>–basedir=/usr/local/mysql</string>
<string>–datadir=/usr/local/mysql/data</string>
<string>–plugin-dir=/usr/local/mysql/lib/plugin</string>
<string>–log-error=/usr/local/mysql/data/mysqld.local.err</string>
<string>–pid-file=/usr/local/mysql/data/mysqld.local.pid</string>
</array>
<key>WorkingDirectory</key>  <string>/usr/local/mysql</string>
</dict>
</plist>