Autostart MySQL Server on Mac OS X Yosemite/El Capitan

前端 未结 7 1330
抹茶落季
抹茶落季 2020-12-02 05:10

I would like to auto start the MySQL server on startup. This was possible in Mavericks but seems to be not working on Yosemite.

edit: seems this wo

相关标签:
7条回答
  • 2020-12-02 05:40

    This article help me resolve the issue with invalid error. Corrected plist I used below.

    How to know which line of plist file is incorrect

    <?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>
    
    0 讨论(0)
提交回复
热议问题