SHUTDOWN
You are viewing an old version of this article. View
the current version here.
MariaDB starting with 10.0.4
SHUTDOWN
command is a new feature in MariaDB 10.0.4
Contents
Syntax
SHUTDOWN;
Description
The SHUTDOWN
command shuts the server down.
Required permissions
One must have a SHUTDOWN
privilege (see GRANT
) to use this command. It is the same privilege one needs to use the mysqladmin shutdown
command.
Example
The following example shows how to create an event which turns off the server at a certain time:
CREATE EVENT `test`.`shutd` ON SCHEDULE EVERY 1 DAY STARTS '2014-01-01 20:00:00' COMMENT 'Shutdown Maria when the office is closed' DO BEGIN SHUTDOWN; END;
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.