mariadb/mysql-test/r/shutdown.result
Sergei Golubchik 1c6394e503 MDEV-4931 Can't use SHUTDOWN in stored programs
keywords that a statement could start from can only be
in the 'keyword' list, never in the 'keyword_sp'
2013-11-10 17:51:06 +01:00

7 lines
247 B
Text

create user user1@localhost;
shutdown;
ERROR 42000: Access denied; you need (at least one of) the SHUTDOWN privilege(s) for this operation
create procedure try_shutdown() shutdown;
drop procedure try_shutdown;
shutdown;
drop user user1@localhost;