The server shutdown process takes place as follows: The shutdown
process is initiated. Server shutdown can be initiated several
ways. For example, a user with the privilege can execute a
mysqladmin shutdown command. mysqladmin can be used on any
platform supported by MySQL. Other operating system-specific
shutdown initiation methods are possible as well: The server
shuts down on Unix when it receives a SIGTERM signal. A server
running as a service on Windows shuts down when the services
manager tells it to. (On Windows, a user with Administrator
rights can also shut down the server using service_name is the
name of the MySQL service. By default, this is The server
creates a shutdown thread if necessary. Depending on how
shutdown was initiated, the server might create a thread to
handle the shutdown process. If shutdown was requested by a
client, a shutdown thread is created. If shutdown is the result
of receiving a SIGTERM signal, the signal thread might handle
shutdown itself, or it might create a separate t