更新时间:2026-07-28 GMT+08:00
分享

如何配置数据库账号登录失败尝试次数?

答:在数据库使用过程中,推荐配置账户登录失败尝试次数,防止密码被暴力破解。配置参数failed_login_attempts后,当失败次数超过此参数值后,账户将被自动锁定。

--配置GUC参数failed_login_attempts等于10。
gs_guc reload -Z coordinator -Z datanode -N all -I all -c "failed_login_attempts=10"

相关文档