1create user user1@localhost; 2connect c1,localhost,user1,,; 3shutdown; 4ERROR 42000: Access denied; you need (at least one of) the SHUTDOWN privilege(s) for this operation 5connection default; 6disconnect c1; 7connect c1,localhost,root,,; 8create procedure try_shutdown() shutdown; 9drop procedure try_shutdown; 10shutdown; 11connection default; 12drop user user1@localhost; 13# 14# MDEV-8491 - On shutdown, report the user and the host executed that. 15# 16FOUND 3 /(mysqld|mariadbd)(\.exe)? \(initiated by: root\[root\] @ localhost \[(::1)?\]\): Normal shutdown/ in mysqld.1.err 17