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;