How Do I Create a Weak Password in GaussDB?
Answer: In the GaussDB database, the weak password dictionary is empty by default. You can manually add one or more weak passwords to the gs_global_config system catalog.
Example:
-- Insert a single weak password into the gs_global_config system catalog. gaussdb=# CREATE WEAK PASSWORD DICTIONARY WITH VALUES ('password1'); -- Insert multiple weak passwords into the gs_global_config system catalog. gaussdb=# CREATE WEAK PASSWORD DICTIONARY WITH VALUES ('password2'),('password3'); -- Check weak passwords in the gs_global_config system catalog. gaussdb=# SELECT * FROM gs_global_config WHERE NAME LIKE 'weak_password'; name | value -----------------+---------------- weak_password | password1 weak_password | password2 weak_password | password3 (3 rows)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.