How can mysql be installed in brew on Mac to start the self-start service?

  mysql, question

MySQL is installed in this way

brew install mysql

Every time you start like this

mysql.server start

How do I set it to start automatically?

brew info mysqlIt has been given to. plist. Just load it, as follows:

mkdir -p ~/Library/LaunchAgents
 cp `brew --prefix mysql`/com.mysql.mysqld.plist ~/Library/LaunchAgents/
 launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist

Plist file name does not have to becom.mysql.mysqld.plistFirst, look at the’ brew –prefix mysql’ directory.

In facthttp://stackoverflow.com/questions/8014500/autostart-mysql-on-boot-from-terminalIt is said here. In additionAutostart MySQL on MacThere is also a saying.


I just googlerun mysql on mac startupFull stop