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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.