stop mysql on start mac code example Example: stop mysql server mac brew services stop mysql brew services start mysql brew services restart mysql