如果忘记了某个用户的密码,需要使用超级用户,比如init user omm,在数据库本机上登陆进数据库,然后执行alter suer username identified by new_password; 超级用户修改其他用户密码,无需提供原始密码。
-- Kamus kamusis@gmail.com 在 2022年5月16日 +0900 17:53,tommy sz_cuitao@163.com,写道:
opengauss=# opengauss=# alter user opengauss with password 'Opengauss123'; ERROR: The old password can not be NULL, please input your old password with 'replace' grammar. opengauss=# opengauss=#
不行啊
发件人: zhang_xb 发送时间: 2022-05-16 16:50 收件人: tommy; community 主题: [Community] 回复: 请问如何修改opengauss 用户的密码? 这样试下,直接设置看看: alter user opengauss with password 'xxxx@123';
------------------ 原始邮件 ------------------ 发件人: "tommy" <sz_cuitao@163.com>; 发送时间: 2022年5月16日(星期一) 下午4:39 收件人: "community"<community@opengauss.org>;
主题: [Community] 请问如何修改opengauss 用户的密码?
忘记了原来的密码,现在如何修改呢?
opengauss=# alter user opengauss identified by 'Opengauss123' REPLACE ''; ERROR: The old password is invalid. opengauss=# opengauss=# opengauss=# opengauss=# opengauss=# alter user opengauss identified by 'Opengauss123' REPLACE 'opengauss'; ERROR: The old password is invalid. opengauss=# opengauss=#
Community mailing list -- community@opengauss.org To unsubscribe send an email to community-leave@opengauss.org _______________________________________________ Community mailing list -- community@opengauss.org To unsubscribe send an email to community-leave@opengauss.org _______________________________________________ Community mailing list -- community@opengauss.org To unsubscribe send an email to community-leave@opengauss.org