etc/init.d/mysql start on mac code example
Example 1: start stop mysql linux
service mysql start
service mysql stop
service mysql restart
Example 2: restart mysql mac command line
# mysql start/stop/restart
# MAC
$ cd /Applications/Ampps/mysql/bin
$ mysql.server restart
#Linux
$ /etc/init.d/mysqld restart
or
$ service mysqld restart
or
$ systemctl restart mysqld