You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- WL8326 made sql_mode include NO_AUTO_CREATE_USER by default in 5.7
- the ndb_dist_priv and ndb_rpl_dist_priv tests fail since
they create a new user using GRANT, rewrite to explicitly
create the new user with a CREATE USER.
- the ndb_dist_priv test also fails on a test case
where it checks that it's possible to create a user
with GRANT. Keep this test until it's not supported by
temporarily changing the sql_mode for the query.
Copy file name to clipboardExpand all lines: mysql-test/suite/ndb_rpl/r/ndb_rpl_dist_priv.result
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,8 @@ select User,Table_priv from mysql.tables_priv ORDER BY User;
26
26
User Table_priv
27
27
newuser Update
28
28
user2 Select
29
+
CREATE USER 'user'@'localhost';
29
30
grant ALL PRIVILEGES on test.* to user@localhost with GRANT OPTION;
30
-
Warnings:
31
-
Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
32
31
select User,Table_priv from mysql.tables_priv ORDER BY User;
33
32
User Table_priv
34
33
newuser Update
@@ -120,6 +119,7 @@ master-bin.000001 # Query # # use `test`; RENAME USER 'user'@'localhost' TO 'new
120
119
master-bin.000001 # Query # # use `test`; GRANT SELECT ON `test`.* TO 'newuser'@'localhost' IDENTIFIED WITH 'mysql_native_password' AS '*1E9649BB3F345563008E37641B407AFF50E5835C'
121
120
master-bin.000001 # Query # # use `test`; CREATE USER 'user2'@'localhost' IDENTIFIED WITH 'mysql_native_password' AS '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4' PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK
122
121
master-bin.000001 # Query # # use `test`; GRANT SELECT ON `test`.`t1` TO 'user2'@'localhost'
122
+
master-bin.000001 # Query # # use `test`; CREATE USER 'user'@'localhost' IDENTIFIED WITH 'mysql_native_password' PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK
123
123
master-bin.000001 # Query # # use `test`; GRANT ALL PRIVILEGES ON `test`.* TO 'user'@'localhost' WITH GRANT OPTION
124
124
master-bin.000001 # Query # # use `test`; GRANT SELECT ON `test`.`t1` TO 'user'@'localhost'
125
125
master-bin.000001 # Query # # REVOKE SELECT ON test.t1 FROM 'user'@'localhost'
@@ -139,6 +139,7 @@ master-bin.000001 # Query # # RENAME USER 'user'@'localhost' TO 'newuser'@'local
139
139
master-bin.000001 # Query # # GRANT SELECT ON test.* TO 'newuser'@'localhost' IDENTIFIED by 'mypass2'
140
140
master-bin.000001 # Query # # CREATE USER 'user2'@'localhost' IDENTIFIED by 'mypass'
141
141
master-bin.000001 # Query # # GRANT SELECT ON test.t1 TO 'user2'@'localhost'
142
+
master-bin.000001 # Query # # CREATE USER 'user'@'localhost'
142
143
master-bin.000001 # Query # # grant ALL PRIVILEGES on test.* to user@localhost with GRANT OPTION
143
144
master-bin.000001 # Query # # GRANT SELECT ON test.t1 TO 'user'@'localhost'
144
145
master-bin.000001 # Query # # use `test`; FLUSH PRIVILEGES
@@ -193,6 +194,7 @@ master-bin.000001 # Query # # RENAME USER 'user'@'localhost' TO 'newuser'@'local
193
194
master-bin.000001 # Query # # GRANT SELECT ON test.* TO 'newuser'@'localhost' IDENTIFIED by 'mypass2'
194
195
master-bin.000001 # Query # # CREATE USER 'user2'@'localhost' IDENTIFIED by 'mypass'
195
196
master-bin.000001 # Query # # GRANT SELECT ON test.t1 TO 'user2'@'localhost'
197
+
master-bin.000001 # Query # # CREATE USER 'user'@'localhost'
196
198
master-bin.000001 # Query # # grant ALL PRIVILEGES on test.* to user@localhost with GRANT OPTION
197
199
master-bin.000001 # Query # # GRANT SELECT ON test.t1 TO 'user'@'localhost'
198
200
master-bin.000001 # Query # # use `test`; FLUSH PRIVILEGES
0 commit comments