summaryrefslogtreecommitdiff
path: root/mysql-test/main/alter_user.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/alter_user.test')
-rw-r--r--mysql-test/main/alter_user.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/main/alter_user.test b/mysql-test/main/alter_user.test
index 37f77c26496..95e6d732907 100644
--- a/mysql-test/main/alter_user.test
+++ b/mysql-test/main/alter_user.test
@@ -106,4 +106,15 @@ alter user foo with MAX_QUERIES_PER_HOUR 10
select * from mysql.user where user = 'foo';
drop user foo;
+--echo #
+--echo # Bug #29882299: ALTER USER ... IDENTIFIED WITH ... BY ... SHOULD BE A PRIVILEGED OPERATION
+--echo #
+create user foo@localhost;
+--connect x,localhost,foo
+--error ER_SPECIFIC_ACCESS_DENIED_ERROR
+alter user current_user identified with 'something';
+--connection default
+--disconnect x
+drop user foo@localhost;
+
update mysql.global_priv set priv=@root_priv where user='root' and host='localhost';