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; # # MDEV-8491 - On shutdown, report the user and the host executed that. # FOUND /mysqld(\.exe)? \(root\[root\] @ localhost \[(::1)?\]\): Normal shutdown/ in mysqld.1.err