Let us know how to start and stop MySQL server on Linux and Windows -
in Linux On, starting and stopping can be done from the command line as follows -
/etc/init.d/mysqld start /etc/init.d/mysqld stop
/etc/init.d/mysqld restart
Some Linux types also Provide service command -
service mysqld start
##
service mysqld stop
service mysqld restart
service mysql start
service mysql stop
service mysql restart
Windows – Starting and Stopping Server
C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld"
C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqladmin" −u root shutdown
The above is the detailed content of Starting and stopping the MySQL server. For more information, please follow other related articles on the PHP Chinese website!