Start / Stop the MySQL database services

Start / Stop the MySQL database in Windows/Linux platform

Start/Stop the MySQL database in Linux Platform

--Start the MySQL database in Linux
/etc/init.d/mysqld start
OR
service mysqld start
OR
service mysql start

--Stop the MySQL database in Linux
/etc/init.d/mysqld stop 
OR
service mysqld stop 
OR
service mysql stop

Start/Stop the MySQL database in Windows Platform

--- Managed from Window Service Console
Open the services.msc
Search MySQL service based on version installed.
Right click for stop, start or restart the service option.

--Start MySQL from command Prompt
C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld"

--Stop MySQL from Command Prompt
C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqladmin" -u root shutdown

Leave a Reply