2013-06-24 20:56:49 +02:00
|
|
|
create user user1@localhost;
|
2016-03-25 17:51:22 +01:00
|
|
|
connect c1,localhost,user1,,;
|
2013-06-24 20:56:49 +02:00
|
|
|
shutdown;
|
|
|
|
ERROR 42000: Access denied; you need (at least one of) the SHUTDOWN privilege(s) for this operation
|
2016-03-25 17:51:22 +01:00
|
|
|
connection default;
|
|
|
|
disconnect c1;
|
|
|
|
connect c1,localhost,root,,;
|
2013-11-10 17:51:06 +01:00
|
|
|
create procedure try_shutdown() shutdown;
|
|
|
|
drop procedure try_shutdown;
|
2013-06-24 20:56:49 +02:00
|
|
|
shutdown;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection default;
|
2013-06-24 20:56:49 +02:00
|
|
|
drop user user1@localhost;
|
2015-11-25 15:12:19 +01:00
|
|
|
#
|
|
|
|
# MDEV-8491 - On shutdown, report the user and the host executed that.
|
|
|
|
#
|
2017-03-14 15:36:30 +01:00
|
|
|
FOUND 2 /mysqld(\.exe)? \(root\[root\] @ localhost \[(::1)?\]\): Normal shutdown/ in mysqld.1.err
|