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. 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/8.4/en/shutdown.html

