Autostart MySQL Server on Mac OS X Yosemite/El Capitan

前端 未结 7 1352
抹茶落季
抹茶落季 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条回答
  •  -上瘾入骨i
    2020-12-02 05:15

    Create /Library/LaunchDaemons/com.mysql.mysql.plist and save it with the following plist:

    
    
    
        
            KeepAlive
            
                Label
                com.mysql.mysqld
                ProgramArguments
                
                    /usr/local/mysql/bin/mysqld_safe
                    --user=mysql
                
            
        
    
    

    Then load the newly created plist file

    sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
    

提交回复
热议问题