@@ -72,12 +72,36 @@ READ_ONLY NO
7272COMMAND_LINE_ARGUMENT REQUIRED
7373create user foo1 identified by 'pwd';
7474ERROR 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'@'%'
7583create user foo1;
7684ERROR 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'@'%'
7790grant select on *.* to foo1 identified by 'pwd';
7891ERROR 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)
7999grant select on *.* to `FooBar1!` identified by 'FooBar1!';
80100ERROR 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)
81105grant select on *.* to `BarFoo1!` identified by 'FooBar1!';
82106drop user `BarFoo1!`;
83107create user foo1 identified by 'aA.12345';
@@ -100,27 +124,63 @@ create user foo1 identified by '123:qwe:ASD!';
100124drop user foo1;
101125create user foo1 identified by '-23:qwe:ASD!';
102126ERROR 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'@'%'
103132create user foo1 identified by '123:4we:ASD!';
104133ERROR 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'@'%'
105139create user foo1 identified by '123:qwe:4SD!';
106140ERROR 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'@'%'
107146create user foo1 identified by '123:qwe:ASD4';
108147ERROR 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'@'%'
109153create user foo1 identified by '123:qwe:ASD!';
110154set password for foo1 = password('qwe:-23:ASD!');
111155ERROR 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)
112160set password for foo1 = old_password('4we:123:ASD!');
113161ERROR HY000: Your password does not satisfy the current policy requirements (simple_password_check)
114162set password for foo1 = password('qwe:123:4SD!');
115163ERROR 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)
116168set password for foo1 = old_password('qwe:123:ASD4');
117169ERROR 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)
118174set password for foo1 = password('qwe:123:ASD!');
119175select @@strict_password_validation;
120176@@strict_password_validation
1211771
122178set password for foo1 = '';
123179ERROR 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)
124184set password for foo1 = '2222222222222222';
125185ERROR HY000: The MariaDB server is running with the --strict-password-validation option so it cannot execute this statement
126186set password for foo1 = '11111111111111111111111111111111111111111';
@@ -135,12 +195,21 @@ grant select on *.* to foo2 identified with mysql_old_password using '2222222222
135195ERROR HY000: The MariaDB server is running with the --strict-password-validation option so it cannot execute this statement
136196create user foo2 identified with mysql_native_password using '';
137197ERROR 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'@'%'
138203grant select on *.* to foo2 identified with mysql_old_password;
139204ERROR 28000: Can't find any matching row in the user table
140205update mysql.user set password='xxx' where user='foo1';
141206set global strict_password_validation=0;
142207set password for foo1 = '';
143208ERROR 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)
144213set password for foo1 = '2222222222222222';
145214set password for foo1 = '11111111111111111111111111111111111111111';
146215create user foo2 identified by password '11111111111111111111111111111111111111111';
0 commit comments