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/8.0/en/mysql-shutdown.html) C API
function.

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

