|
10.7.0-opt>INSTALL SONAME 'password_reuse_check';
|
Query OK, 0 rows affected (0.000 sec)
|
|
10.7.0-opt>show grants for test_user@localhost ;
|
+---------------------------------------------------------------------------------------------------------------------------+
|
| Grants for test_user@localhost |
|
+---------------------------------------------------------------------------------------------------------------------------+
|
| GRANT ALL PRIVILEGES ON *.* TO `test_user`@`localhost` IDENTIFIED BY PASSWORD '*66C77D72F32DC78E989434B9F9057B0C6D50464F' |
|
+---------------------------------------------------------------------------------------------------------------------------+
|
1 row in set (0.000 sec)
|
|
10.7.0-opt>ALTER USER test_user@localhost identified by 'dummypass';
|
ERROR 1396 (HY000): Operation ALTER USER failed for 'test_user'@'localhost'
|
10.7.0-opt>show grants for test_user@localhost ;
|
+--------------------------------------------------------+
|
| Grants for test_user@localhost |
|
+--------------------------------------------------------+
|
| GRANT ALL PRIVILEGES ON *.* TO `test_user`@`localhost` |
|
+--------------------------------------------------------+
|
1 row in set (0.000 sec)
|
|
10.7.0-opt>
|
$ ./bin/mysql -utest_user -S/test/mtest/MD160921-mariadb-10.7.0-linux-x86_64-opt/socket.sock -pdummypass
|
ERROR 1045 (28000): Access denied for user 'test_user'@'localhost' (using password: YES)
|
$
|
|
10.7.0-opt>show grants for test_user@localhost;
|
+---------------------------------------------------------------------------------------------------------------------------+
|
| Grants for test_user@localhost |
|
+---------------------------------------------------------------------------------------------------------------------------+
|
| GRANT ALL PRIVILEGES ON *.* TO `test_user`@`localhost` IDENTIFIED BY PASSWORD '*BCF4F28E525ED7EE4664FFFF4DAE13EC14A6ABE1' |
|
+---------------------------------------------------------------------------------------------------------------------------+
|
1 row in set (0.000 sec)
|
|
10.7.0-opt>grant all on *.* to test_user@localhost identified by 'Test@123';
|
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
|
10.7.0-opt>show grants for test_user@localhost;
|
+--------------------------------------------------------+
|
| Grants for test_user@localhost |
|
+--------------------------------------------------------+
|
| GRANT ALL PRIVILEGES ON *.* TO `test_user`@`localhost` |
|
+--------------------------------------------------------+
|
1 row in set (0.000 sec)
|
|
10.7.0-opt>
|