Syntax:
SHUTDOWN

This statement stops the MySQL server. It requires the SHUTDOWN
privilege.

SHUTDOWN provides an SQL-level interface to the same functionality
available using the mysqladmin shutdown command or the mysql_shutdown()
(https://dev.mysql.com/doc/c-api/5.7/en/mysql-shutdown.html) C API
function. A successful SHUTDOWN sequence consists of checking the
privileges, validating the arguments, and sending an OK packet to the
client. Then the server is shut down.

URL: https://dev.mysql.com/doc/refman/5.7/en/shutdown.html

