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