@@ -72,12 +72,36 @@ READ_ONLY NO
72
72
COMMAND_LINE_ARGUMENT REQUIRED
73
73
create user foo1 identified by 'pwd';
74
74
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
75
+ show warnings;
76
+ Level Code Message
77
+ Warning 1819 simple_password_check: Too short password (< 8)
78
+ Warning 1819 simple_password_check: Not enough upper case letters (< 1)
79
+ Warning 1819 simple_password_check: Not enough digits (< 1)
80
+ Warning 1819 simple_password_check: Not enough special characters (< 1)
81
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
82
+ Error 1396 Operation CREATE USER failed for 'foo1'@'%'
75
83
create user foo1;
76
84
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
85
+ show warnings;
86
+ Level Code Message
87
+ Warning 1819 simple_password_check: The password equal to the user name
88
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
89
+ Error 1396 Operation CREATE USER failed for 'foo1'@'%'
77
90
grant select on *.* to foo1 identified by 'pwd';
78
91
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
92
+ show warnings;
93
+ Level Code Message
94
+ Warning 1819 simple_password_check: Too short password (< 8)
95
+ Warning 1819 simple_password_check: Not enough upper case letters (< 1)
96
+ Warning 1819 simple_password_check: Not enough digits (< 1)
97
+ Warning 1819 simple_password_check: Not enough special characters (< 1)
98
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
79
99
grant select on *.* to `FooBar1!` identified by 'FooBar1!';
80
100
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
101
+ show warnings;
102
+ Level Code Message
103
+ Warning 1819 simple_password_check: The password equal to the user name
104
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
81
105
grant select on *.* to `BarFoo1!` identified by 'FooBar1!';
82
106
drop user `BarFoo1!`;
83
107
create user foo1 identified by 'aA.12345';
@@ -100,27 +124,63 @@ create user foo1 identified by '123:qwe:ASD!';
100
124
drop user foo1;
101
125
create user foo1 identified by '-23:qwe:ASD!';
102
126
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
127
+ show warnings;
128
+ Level Code Message
129
+ Warning 1819 simple_password_check: Not enough digits (< 3)
130
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
131
+ Error 1396 Operation CREATE USER failed for 'foo1'@'%'
103
132
create user foo1 identified by '123:4we:ASD!';
104
133
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
134
+ show warnings;
135
+ Level Code Message
136
+ Warning 1819 simple_password_check: Not enough lower case letters (< 3)
137
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
138
+ Error 1396 Operation CREATE USER failed for 'foo1'@'%'
105
139
create user foo1 identified by '123:qwe:4SD!';
106
140
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
141
+ show warnings;
142
+ Level Code Message
143
+ Warning 1819 simple_password_check: Not enough upper case letters (< 3)
144
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
145
+ Error 1396 Operation CREATE USER failed for 'foo1'@'%'
107
146
create user foo1 identified by '123:qwe:ASD4';
108
147
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
148
+ show warnings;
149
+ Level Code Message
150
+ Warning 1819 simple_password_check: Not enough special characters (< 3)
151
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
152
+ Error 1396 Operation CREATE USER failed for 'foo1'@'%'
109
153
create user foo1 identified by '123:qwe:ASD!';
110
154
set password for foo1 = password('qwe:-23:ASD!');
111
155
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
156
+ show warnings;
157
+ Level Code Message
158
+ Warning 1819 simple_password_check: Not enough digits (< 3)
159
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
112
160
set password for foo1 = old_password('4we:123:ASD!');
113
161
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
114
162
set password for foo1 = password('qwe:123:4SD!');
115
163
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
164
+ show warnings;
165
+ Level Code Message
166
+ Warning 1819 simple_password_check: Not enough upper case letters (< 3)
167
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
116
168
set password for foo1 = old_password('qwe:123:ASD4');
117
169
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
170
+ show warnings;
171
+ Level Code Message
172
+ Warning 1819 simple_password_check: Not enough special characters (< 3)
173
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
118
174
set password for foo1 = password('qwe:123:ASD!');
119
175
select @@strict_password_validation;
120
176
@@strict_password_validation
121
177
1
122
178
set password for foo1 = '';
123
179
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
180
+ show warnings;
181
+ Level Code Message
182
+ Warning 1819 simple_password_check: The password equal to the user name
183
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
124
184
set password for foo1 = '2222222222222222';
125
185
ERROR HY000: The MariaDB server is running with the --strict-password-validation option so it cannot execute this statement
126
186
set password for foo1 = '11111111111111111111111111111111111111111';
@@ -135,12 +195,21 @@ grant select on *.* to foo2 identified with mysql_old_password using '2222222222
135
195
ERROR HY000: The MariaDB server is running with the --strict-password-validation option so it cannot execute this statement
136
196
create user foo2 identified with mysql_native_password using '';
137
197
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
198
+ show warnings;
199
+ Level Code Message
200
+ Warning 1819 simple_password_check: The password equal to the user name
201
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
202
+ Error 1396 Operation CREATE USER failed for 'foo2'@'%'
138
203
grant select on *.* to foo2 identified with mysql_old_password;
139
204
ERROR 28000: Can't find any matching row in the user table
140
205
update mysql.user set password='xxx' where user='foo1';
141
206
set global strict_password_validation=0;
142
207
set password for foo1 = '';
143
208
ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
209
+ show warnings;
210
+ Level Code Message
211
+ Warning 1819 simple_password_check: The password equal to the user name
212
+ Error 1819 Your password does not satisfy the current policy requirements (simple_password_check)
144
213
set password for foo1 = '2222222222222222';
145
214
set password for foo1 = '11111111111111111111111111111111111111111';
146
215
create user foo2 identified by password '11111111111111111111111111111111111111111';
0 commit comments