Restart Mysql Server When Using Homebrew

If you want to restart a MySQL server when using homebrew, you can use this command:

brew services restart mysql@5.7

Caution: You may have to modify the MySQL server version used – in this case 5.7.