mysql> ALTER USER `db_example`@`%` IDENTIFIED BY "qeW0zdszb\vZjt4o";
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> ALTER USER `db_example`@`%` IDENTIFIED BY "qeW0zdszb\tZjt4o";
Query OK, 0 rows affected (0.00 sec)
MySQL version: 5.7
two passwords qeW0zdszb\ vZjt4o
and qeW0zdszb\ tZjt4o
are distinguished only by \ v
or \ t
Why do passwords containing \ v
report errors? What are the restrictions on setting a password in MySQL?
when using Spring to connect to the database, if the password has \
characters, the configuration also has to escape.