云数据库 GAUSSDB-CREATE WEAK PASSWORD DICTIONARY:示例

时间:2024-11-02 18:53:04

示例

--向gs_global_config系统表中插入单个弱口令。 
openGauss=# CREATE WEAK PASSWORD DICTIONARY WITH VALUES ('password1');  

--向gs_global_config系统表中插入多个弱口令。 
openGauss=# CREATE WEAK PASSWORD DICTIONARY WITH VALUES ('password2'),('password3');  

--清空gs_global_config系统表中所有弱口令。 
openGauss=# DROP WEAK PASSWORD DICTIONARY;  

--查看现有弱口令。 
openGauss=# SELECT * FROM gs_global_config WHERE NAME LIKE 'weak_password';
support.huaweicloud.com/centralized-devg-v2-gaussdb/devg_03_0587.html